YSTest: DSWindow.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

- 首页
- 相关页面
- 模块
- 命名空间
- 类
- 文件

- 文件列表
- 文件成员

DSWindow.h
浏览该文件的文档.
1 /*
2 © 2013-2016 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
29 #ifndef Inc_Helper_DSWindow_h_
30 #define Inc_Helper_DSWindow_h_ 1
31
32 #include "Helper/YModules.h"
33 #include YFM_Helper_HostWindow // for Environment, Host::Window;
34 #include "DSScreen.h" // for Devices::DSScreen;
35
36 namespace YSLib
37 {
38
39 #if YF_Hosted
40 namespace Host
41 {
42
47 class DSWindow : public Window
48 {
49 private:
51 Devices::DSScreen& scr_up;
53 Devices::DSScreen& scr_dn;
54
55 public:
57 DSWindow(NativeWindowHandle, Devices::DSScreen&, Devices::DSScreen&,
58 GUIHost&);
59
61 DefGetter(ynothrow, Devices::DSScreen&, ScreenUpRef, scr_up)
63 DefGetter(ynothrow, Devices::DSScreen&, ScreenDownRef, scr_dn)
64
65 # if YCL_Win32
66
71 YSLib::Drawing::Point
72 MapPoint(const YSLib::Drawing::Point&) const override;
73
75 template<typename _tSurface>
76 static void
77 UpdateScreen(_tSurface& sf, Devices::DSScreen& scr,
78 const YSLib::Drawing::Rect& r)
79 {
80 scr.UpdateBoundsToSurface(sf,
81 YSLib::Drawing::Rect(scr.Offset, scr.GetSize()) & r);
82 }
83
88 void
89 UpdateTextInputFocus(UI::IWidget&, const Drawing::Point&) override;
90 # endif
91 };
92
93 } // namespace Host;
94 #endif
95
96 } // namespace YSLib;
97
98 #endif
99
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::UI::Styles::Window
窗口背景。
Definition: YStyle.h:311
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:240
YSLib::ynothrow
YB_PURE const _type size_t n ynothrow
Definition: YCoreUtilities.h:168
DSScreen.h
DS 屏幕。
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
YSLib::Drawing::r
The boundary is out of the const Graphics const Rect const Point const Point Color c const Rect const Rect & r
Definition: YDraw.h:174
YModules.h
YSLib::Drawing::Point
GBinaryGroup< SPos > Point
屏幕二维点（直角坐标表示）。
Definition: YGDIBase.h:278
YSLib::Drawing::GBinaryGroup< SPos >