35 using Devices::DSScreen;
43 :
Window(h, e), scr_up(s_up), scr_dn(s_dn)
48 MessageMap[WM_DESTROY] += []{
53 MessageMap[WM_PAINT] += [
this]{
57 GSurface<WindowRegionDeviceContext> sf(GetNativeHandle());
59 scr_up.UpdateToSurface(sf),
60 scr_dn.UpdateToSurface(sf);
67 DSWindow::GetInputBounds() const
ynothrow
69 return {
Point(0, MainScreenHeight),
70 Point(MainScreenWidth, MainScreenHeight << 1)};
YF_API void PostQuitMessage(int nExitCode, Messaging::Priority p=0xF0)
以优先级 p 发起 Shell 终止请求,返回 nExitCode。
GBinaryGroup< SPos > Point
屏幕二维点(直角坐标表示)。
#define yunseq
无序列依赖表达式组求值。
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
::ANativeWindow * NativeWindowHandle