YSTest: YDesktop.h 源文件

YSTest PreAlpha_b900_20201012 The YSLib Test Project

YDesktop.h
浏览该文件的文档.
1 /*
2 © 2010-2015, 2020 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> = {});
66 ~Desktop() override;
67
68 DefGetter(const ynothrow, const Devices::Screen&, Screen, screen) \
70
71 DefGetter(ynothrow, Rect, InvalidatedArea,
72 GetRenderer().CommitInvalidation({}))
73
74
77 void
78 Update();
79
85 Rect
86 Validate();
87 };
88
89 } // namespace UI;
90
91 } // namespace YSLib;
92
93 #endif
94
YSLib::UI::ynothrow
AView &y ynothrow
Definition: YWidgetView.cpp:47
YSLib::UI::Desktop::GetRenderer
GetRenderer().CommitInvalidation(
Definition: YDesktop.h:72
YSLib::UI::Desktop::~Desktop
~Desktop() override
虚析构：类定义外默认实现。
YSLib::UI::Styles::Desktop
@ Desktop
桌面背景。
Definition: YStyle.h:310
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::UI::Window
窗口。
Definition: YWindow.h:45
YSLib::Drawing::ColorSpace::Black
@ Black
Definition: YGDIBase.h:262
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:788
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:46
Color
Pixel Color
Definition: CharRenderer.cpp:59
YModules.h
YSLib 用户界面模块配置文件。
NPL::SContext::Validate
YB_ATTR_nodiscard _tIn Validate(_tIn first, _tIn last)
遍历记号列表，验证基本合法性：圆括号是否对应。
Definition: SContext.h:1050
YSLib::UI::Desktop
桌面。
Definition: YDesktop.h:47
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:241
YSLib::Devices::Screen
屏幕。
Definition: YDevice.h:133
YSLib::UI::Desktop::DefGetter
DefGetter(const ynothrow, const Devices::Screen &, Screen, screen) DefGetter(ynothrow
YSLib::UI::Desktop::screen
Devices::Screen & screen
屏幕对象。
Definition: YDesktop.h:49