1 // $Id: root_graphic_context.hxx,v 1.3 2003/07/28 22:46:48 grumbel Exp $
3 // Construo - A wire-frame construction game
4 // Copyright (C) 2002 Ingo Ruhnke <grumbel@gmx.de>
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.
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
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
34 std::stack
<CursorType
> cursor_stack
;
35 CursorType current_cursor
;
37 RootGraphicContext() {}
38 virtual ~RootGraphicContext() {}
40 void set_cursor(CursorType
);
45 virtual void set_cursor_real(CursorType
) =0;
48 /** Enter fullscreen mode */
49 virtual void enter_fullscreen() =0;
51 /** Leave fullscreen and return to windowed mode */
52 virtual void leave_fullscreen() =0;
55 RootGraphicContext (const RootGraphicContext
&);
56 RootGraphicContext
& operator= (const RootGraphicContext
&);