Rebuild autotool system
[construo.git] / root_graphic_context.hxx
blobceeb5c08478e446939b63f5184f33c3bbf5326ad
1 // $Id: root_graphic_context.hxx,v 1.3 2003/07/28 22:46:48 grumbel Exp $
2 //
3 // Construo - A wire-frame construction game
4 // Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>
5 //
6 // This program is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU General Public License
8 // as published by the Free Software Foundation; either version 2
9 // of the License, or (at your option) any later version.
11 // This program is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 // GNU General Public License for more details.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with this program; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 #ifndef HEADER_ROOT_GRAPHIC_CONTEXT_HXX
21 #define HEADER_ROOT_GRAPHIC_CONTEXT_HXX
23 #include <stack>
24 #include "graphic_context.hxx"
25 #include "cursors.hxx"
27 /** RootGraphicContext represetens the window in which Construo runs,
28 * it provides ways to set the title the cursor, etc. in addition to
29 * the stuff that a normal GraphicContext provides.
31 class RootGraphicContext : public GraphicContext
33 private:
34 std::stack<CursorType> cursor_stack;
35 CursorType current_cursor;
36 public:
37 RootGraphicContext() {}
38 virtual ~RootGraphicContext() {}
40 void set_cursor(CursorType);
41 void push_cursor();
42 void pop_cursor();
44 protected:
45 virtual void set_cursor_real(CursorType) =0;
47 public:
48 /** Enter fullscreen mode */
49 virtual void enter_fullscreen() =0;
51 /** Leave fullscreen and return to windowed mode */
52 virtual void leave_fullscreen() =0;
54 private:
55 RootGraphicContext (const RootGraphicContext&);
56 RootGraphicContext& operator= (const RootGraphicContext&);
59 #endif
61 /* EOF */