YSTest: ydesktop.h 源文件

YSTest PreAlpha_b500_20140530 The YSLib Test Project

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

- 文件列表
- 文件成员

全部 类 命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 组 页
ydesktop.h
浏览该文件的文档.
1 /*
2 © 2010-2014 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)
63
64 DefGetter(const ynothrow, const Devices::Screen&, Screen, screen) \
66 DefGetter(const ynothrow, BitmapPtr, BackgroundPtr,
67 screen.GetCheckedBufferPtr())
68
69 DefGetter(ynothrow, Rect, InvalidatedArea,
70 GetRenderer().CommitInvalidation({}))
71
75 void
76 Update();
77
83 Rect
84 Validate();
85 };
86
87 } // namespace UI;
88
89 } // namespace YSLib;
90
91 #endif
92
YSLib::Devices::Screen
屏幕。
Definition: ydevice.h:126
YModules.h
NPL::SContext::Validate
YF_API TLCIter Validate(TLCIter b, TLCIter e)
遍历记号列表，验证基本合法性：圆括号是否对应。
Definition: SContext.cpp:60
YF_API
#define YF_API
Definition: Platform.h:64
YSLib::UI::Desktop::screen
Devices::Screen & screen
屏幕对象。
Definition: ydesktop.h:49
YSLib::UI::Window
窗口。
Definition: ywindow.h:44
platform::Consoles::Black
Definition: Video.h:460
DefGetter
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:180
ynothrow
#define ynothrow
YSLib 无异常抛出保证：若支持 noexcept 关键字， 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: ygdibase.h:416
YSLib::UI::Desktop
桌面。
Definition: ydesktop.h:46
YSLib::UI::Styles::Desktop
桌面背景。
Definition: ystyle.h:181
platform::Consoles::Color
Color
控制台颜色枚举。
Definition: Video.h:458
YSLib::UI::DefDeMoveCtor
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
platform::BitmapPtr
PixelType * BitmapPtr
Definition: Video.h:295