YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
平台相关的应用程序类。 更多...
#include <GUIApplication.h>
Public 成员函数 | |
GUIApplication () | |
private 构造函数:非内联。 更多... | |
~GUIApplication () override | |
析构:释放资源。 更多... | |
bool | DealMessage () |
处理当前消息。 更多... | |
![]() | |
Application () | |
无参数构造。 更多... | |
virtual | ~Application () |
析构:释放 Shell 所有权和其它资源。 更多... | |
DefGetter (const ynothrow, shared_ptr< Shell >, ShellHandle, hShell) template< typename _fCallable > auto AccessQueue(_fCallable f) -> decltype(f(qMain)) | |
取得线程空间中当前运行的 Shell 的句柄。 更多... | |
void | OnGotMessage (const Message &) override |
处理消息:分发消息。 更多... | |
bool | Switch (shared_ptr< Shell > &) ynothrow |
线程切换:若参数非空,和线程空间中当前运行的 Shell 的句柄交换。 更多... | |
Public 属性 | |
Messaging::Priority | UIResponseLimit = 0x40 |
用户界面输入响应阈值。 更多... | |
![]() | |
std::function< void()> | ApplicationExit |
资源释放函数。 更多... | |
额外继承的成员函数 | |
![]() | |
MessageQueue | qMain |
shared_ptr< Shell > | hShell |
当前 Shell 句柄:指示当前线程空间中运行的 Shell 。 更多... | |
YSLib::GUIApplication::GUIApplication | ( | ) |
private
构造函数:非内联。
在文件 GUIApplication.cpp 第 73 行定义.
参考 YSLib::InitializeEnviornment() , 以及 YAssert.
|
override |
bool YSLib::GUIApplication::DealMessage | ( | ) |
处理当前消息。
若主消息队列为空,处理空闲消息,否则从主消息队列取出并分发消息。 当取出的消息的标识为 SM_Quit 时视为终止循环。 对于后台消息,分发前调用后台消息处理程序:分发空闲消息并可进行时序控制。
在文件 GUIApplication.cpp 第 103 行定义.
参考 YSLib::Application::OnGotMessage(), SM_Quit, UIResponseLimit , 以及 YB_UNLIKELY.
参考自 YSLib::Execute().
Messaging::Priority YSLib::GUIApplication::UIResponseLimit = 0x40 |
用户界面输入响应阈值。
用于主消息队列的消息循环中控制后台消息生成策略的全局消息优先级。
在文件 GUIApplication.h 第 68 行定义.
参考自 DealMessage().