YSTest: YDesktop.h 源文件

YSTest PreAlpha_b800_20170810 The YSLib Test Project

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

- 文件列表
- 文件成员

YDesktop.h
浏览该文件的文档.
1 /*
2 © 2010-2015 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
28 #ifndef YSL_INC_UI_YDesktop_h_
29 #define YSL_INC_UI_YDesktop_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_UI_YWindow
33 #include YFM_YSLib_Core_YDevice
34
35 namespace YSLib
36 {
37
38 namespace UI
39 {
40
46 class YF_API Desktop : public Window
47 {
48 private:
49 Devices::Screen& screen;
50
51 public:
58 explicit
59 Desktop(Devices::Screen&, Color = Drawing::ColorSpace::Black,
60 const shared_ptr<Drawing::Image>& = {},
61 unique_ptr<BufferedRenderer> = {});
62 DefDeMoveCtor(Desktop)
67 ~Desktop() override;
68
69 DefGetter(const ynothrow, const Devices::Screen&, Screen, screen) \
71
72 DefGetter(ynothrow, Rect, InvalidatedArea,
73 GetRenderer().CommitInvalidation({}))
74
75
78 void
79 Update();
80
86 Rect
87 Validate();
88 };
89
90 } // namespace UI;
91
92 } // namespace YSLib;
93
94 #endif
95
YSLib::UI::ynothrow
AView &y ynothrow
Definition: YWidgetView.cpp:47
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
UI
YSLib::UI::Desktop
桌面。
Definition: YDesktop.h:46
YSLib::UI::Desktop::screen
Devices::Screen & screen
屏幕对象。
Definition: YDesktop.h:49
DefDeMoveCtor
#define DefDeMoveCtor(_t)
Definition: YBaseMacro.h:167
Color
Pixel Color
Definition: CharRenderer.cpp:58
YSLib::Devices::Screen
屏幕。
Definition: YDevice.h:136
YSLib::UI::Window
窗口。
Definition: YWindow.h:44
YF_API
#define YF_API
Definition: Platform.h:56
YModules.h
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:241
YSLib::Consoles::Black
Definition: YConsole.h:53
YSLib::UI::Styles::Desktop
桌面背景。
Definition: YStyle.h:310
YSLib::UI::Desktop::GetRenderer
GetRenderer().CommitInvalidation(
Definition: YDesktop.h:73
NPL::SContext::Validate
YF_API TLCIter Validate(TLCIter b, TLCIter e)
遍历记号列表，验证基本合法性：圆括号是否对应。
Definition: SContext.cpp:53