YSTest: GUIShell.h 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

GUIShell.h
浏览该文件的文档.
1 /*
2 © 2013 FrankHB.
3
4 This file is part of the YSLib project, and may only be used,
5 modified, and distributed under the terms of the YSLib project
6 license, LICENSE.TXT. By continuing to use, modify, or distribute
7 this file you indicate that you have read the license and
8 understand and accept it fully.
9 */
10
28 #ifndef INC_Helper_GUIShell_h_
29 #define INC_Helper_GUIShell_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_Core_YShell
33 #include YFM_YSLib_Core_YString
34 #include YFM_Helper_InputManager
35
36 namespace YSLib
37 {
38
39 namespace Shells
40 {
41
46 class YF_API GUIShell : public Shell
47 {
48 protected:
52 Devices::InputManager imMain;
53
54 public:
59 std::chrono::nanoseconds IdleSleep{1000000};
60
64 GUIShell();
65
74 void
75 OnGotMessage(const Message&) override;
76
84 virtual void
85 OnInput();
86
90 virtual void
91 OnPaint();
92 };
93
94 } // namespace Shells;
95
96 } // namespace YSLib;
97
98 #endif
99
YSLib::Devices::InputManager
输入管理器。
Definition: InputManager.h:46
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::Shells::GUIShell
GUI Shell 基类。
Definition: GUIShell.h:47
YSLib::Shells::Shell
外壳程序：实现运行期控制流映像语义。
Definition: YShell.h:42
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:46
YModules.h
YSLib 用户界面模块配置文件。
YSLib::Shells::GUIShell::imMain
Devices::InputManager imMain
输入管理器。
Definition: GUIShell.h:52
YSLib::Messaging::Message
消息。
Definition: YMessage.h:67