|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
程序实例。 更多...
#include <yapp.h>


Public 成员函数 | |
| 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 属性 | |
| std::function< void()> | ApplicationExit |
| 资源释放函数。 更多... | |
Protected 属性 | |
| MessageQueue | qMain |
| shared_ptr< Shell > | hShell |
| 当前 Shell 句柄:指示当前线程空间中运行的 Shell 。 更多... | |
|
virtual |
|
inline |
|
override |
处理消息:分发消息。
| 捕获并忽略 | Messaging::MessageSignal ,其它异常中立。 |
参考 YAssert.
参考自 YSLib::GUIApplication::DealMessage().

| bool YSLib::Application::Switch | ( | shared_ptr< Shell > & | h | ) |
线程切换:若参数非空,和线程空间中当前运行的 Shell 的句柄交换。
参考 ystdex::swap() , 以及 YB_LIKELY.
参考自 YSLib::Activate() , 以及 YSLib::Shells::Shell::DefShlProc().


| std::function<void()> YSLib::Application::ApplicationExit |
|
protected |
|
protected |
参考自 ~Application().