OpenClonk
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros
C4FullScreen.h
Go to the documentation of this file.
1 /*
2  * OpenClonk, http://www.openclonk.org
3  *
4  * Copyright (c) 1998-2000, Matthes Bender
5  * Copyright (c) 2001-2009, RedWolf Design GmbH, http://www.clonk.de/
6  * Copyright (c) 2013-2016, The OpenClonk Team and contributors
7  *
8  * Distributed under the terms of the ISC license; see accompanying file
9  * "COPYING" for details.
10  *
11  * "Clonk" is a registered trademark of Matthes Bender, used with permission.
12  * See accompanying file "TRADEMARK" for details.
13  *
14  * To redistribute this file separately, substitute the full license texts
15  * for the above references.
16  */
17 
18 /* Main class to execute the game fullscreen mode */
19 
20 #ifndef INC_C4FullScreen
21 #define INC_C4FullScreen
22 
23 #include "platform/C4Window.h"
24 
25 bool IsKeyDown(int iKey);
26 
27 class C4FullScreen: public C4Window
28 {
29 public:
31 public:
32  C4FullScreen();
33  ~C4FullScreen();
34  void Execute();
35  bool ViewportCheck();
36  bool ShowAbortDlg(); // show game abort dialog (Escape pressed)
37  bool ActivateMenuMain();
38  void CloseMenu();
39  bool MenuKeyControl(BYTE byCom); // direct keyboard callback
40  using C4Window::Init;
41  C4Window * Init(C4AbstractApp * pApp);
42  // User requests close
43  virtual void Close();
44  virtual void Clear();
45  virtual void CharIn(const char * c);
46  virtual void PerformUpdate();
47 };
48 
50 
51 #endif
bool ActivateMenuMain()
C4MainMenu * pMenu
Definition: C4FullScreen.h:30
virtual void PerformUpdate()
uint8_t BYTE
virtual void Close()
bool IsKeyDown(int iKey)
virtual void CharIn(const char *c)
bool ViewportCheck()
bool ShowAbortDlg()
virtual void Clear()
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
Definition: C4AppT.cpp:107
C4FullScreen FullScreen
Definition: C4Globals.cpp:46
C4Window * Init(C4AbstractApp *pApp)
bool MenuKeyControl(BYTE byCom)