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:
50 
51 public:
58  explicit
60  const shared_ptr<Drawing::Image>& = {},
61  unique_ptr<BufferedRenderer> = {});
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 
YF_API TLCIter Validate(TLCIter b, TLCIter e)
遍历记号列表,验证基本合法性:圆括号是否对应。
Definition: SContext.cpp:60
#define YF_API
Definition: Platform.h:64
Devices::Screen & screen
屏幕对象。
Definition: ydesktop.h:49
窗口。
Definition: ywindow.h:44
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:180
#define ynothrow
YSLib 无异常抛出保证:若支持 noexcept 关键字, 指定特定的 noexcept 异常规范。
Definition: ydef.h:514
屏幕标准矩形:表示屏幕矩形区域。
Definition: ygdibase.h:416
桌面。
Definition: ydesktop.h:46
桌面背景。
Definition: ystyle.h:181
Color
控制台颜色枚举。
Definition: Video.h:458
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
PixelType * BitmapPtr
Definition: Video.h:295