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:
30 	C4MainMenu *pMenu;
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 byCom); // direct keyboard callback
40 	using C4Window::Init;
41 	C4Window * Init(C4AbstractApp * pApp);
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 
49 extern C4FullScreen   FullScreen;
50 
51 #endif
52