OpenClonk
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() override;
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 command); // direct keyboard callback
40  using C4Window::Init;
41  C4Window * Init(C4AbstractApp * application);
42  // User requests close
43  void Close() override;
44  void Clear() override;
45  void CharIn(const char * c) override;
46  void PerformUpdate() override;
47 };
48 
50 
51 #endif
bool IsKeyDown(int iKey)
C4FullScreen FullScreen
Definition: C4Globals.cpp:46
uint8_t BYTE
void Clear() override
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
Definition: C4AppT.cpp:109
C4MainMenu * MainMenu
Definition: C4FullScreen.h:30
~C4FullScreen() override
bool MenuKeyControl(BYTE command)
bool ShowAbortDlg()
bool ActivateMenuMain()
bool ViewportCheck()
void CharIn(const char *c) override
void PerformUpdate() override
void Close() override
virtual C4Window * Init(WindowKind windowKind, C4AbstractApp *pApp, const char *Title, const C4Rect *size)
Definition: C4AppT.cpp:109