29 #ifndef INC_Helper_shlds_h_
30 #define INC_Helper_shlds_h_ 1
33 #include YFM_Helper_GUIShell
57 ExecuteCommand(
const ucs2_t*);
64 return ExecuteCommand(s.c_str());
116 ShlDS(
const shared_ptr<Desktop>& = {},
const shared_ptr<Desktop>& = {});
123 DefGetter(const ynothrow, const shared_ptr<Desktop>&, MainDesktopHandle,
125 DefGetter(const ynothrow, Desktop&, MainDesktop, *main_desktop_ptr)
126 DefGetter(const ynothrow, const shared_ptr<Desktop>&, SubDesktopHandle,
128 DefGetter(const ynothrow, Desktop&, SubDesktop, *sub_desktop_ptr)
141 OnGotMessage(const Message&) override;
170 WrapForSwapScreens(UI::IWidget&,
KeyInput&);
int ExecuteCommand(const String &s)
执行命令行。
#define DefGetter(_q, _t, _n,...)
YSLib 标准字符串(使用 UCS-2 作为内部编码)。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
bool bUpdateUp
指定当前桌面是否需要更新。
char16_t ucs2_t
UCS-2 字符类型。
YF_API void ResetDSDesktops(Desktop &, Desktop &)
以默认屏幕复位两个桌面。
shared_ptr< Desktop > cursor_desktop_ptr
指针设备响应的桌面指针:总是指向下屏对应的桌面。
shared_ptr< Desktop > sub_desktop_ptr
std::bitset< KeyBitsetWidth > KeyInput
按键并行位宽。