YSTest: YWindow.h 源文件

YSTest PreAlpha_b700_20160611 The YSLib Test Project

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

- 文件列表
- 文件成员

YWindow.h
浏览该文件的文档.
1 /*
2 © 2009-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_YWindow_h_
29 #define YSL_INC_UI_YWindow_h_ 1
30
31 #include "YModules.h"
32 #include YFM_YSLib_UI_YPanel
33
34 namespace YSLib
35 {
36
37 namespace UI
38 {
39
44 class YF_API Window : public Panel
45 {
46 public:
52 explicit
53 Window(const Rect& = {},
54 unique_ptr<Renderer> = make_unique<BufferedRenderer>());
55 DefDeMoveCtor(Window)
56
57 void
58 operator+=(IWidget&) override;
59 virtual void
60 operator+=(Window&);
61 template<class _type>
62 inline void
63 operator+=(_type& p)
64 {
65 return operator+=(ystdex::cond_t<std::is_convertible<_type&, Window&>,
66 Window&, IWidget&>(p));
67 }
68
69 bool
70 operator-=(IWidget&) override;
71 virtual bool
72 operator-=(Window&);
73 template<class _type>
74 inline bool
75 operator-=(_type& p)
76 {
77 return operator-=(ystdex::cond_t<std::is_convertible<_type&, Window&>,
78 Window&, IWidget&>(p));
79 }
80
81 using MUIContainer::Contains;
82
84 void
85 Add(IWidget&, ZOrder = DefaultZOrder) override;
86 };
87
88 } // namespace UI;
89
90 } // namespace YSLib;
91
92 #endif
93
platform::p
while p p
Definition: YCLib/FileSystem.h:225
YSLib::UI::ZOrder
std::uint8_t ZOrder
Z 顺序类型：覆盖顺序，值越大表示越接近顶层。
Definition: YUIContainer.h:176
YSLib
YSLib 命名空间。
Definition: AndroidHost.h:45
YSLib::UI::Styles::Window
窗口背景。
Definition: YStyle.h:311
YSLib::Drawing::Rect
屏幕标准矩形：表示屏幕矩形区域。
Definition: YGDIBase.h:540
DefDeMoveCtor
#define DefDeMoveCtor(_t)
Definition: YBaseMacro.h:166
ystdex::cond_t
conditional_t< _tCond::value, _tThen, _tElse > cond_t
条件判断。
Definition: type_traits.hpp:698
UI
YModules.h
YSLib::UI::Panel
面板。
Definition: ypanel.h:45
YSLib::UI::Window
窗口。
Definition: YWindow.h:44
YF_API
#define YF_API
Definition: Platform.h:56
YSLib::UI::MUIContainer::Contains
bool Contains(IWidget &)
判断是否包含指定部件。
Definition: YUIContainer.cpp:244
YSLib::UI::Window::operator+=
void operator+=(_type &p)
Definition: YWindow.h:63
YSLib::UI::Window::operator-=
bool operator-=(_type &p)
Definition: YWindow.h:75
YSLib::UI::DefaultZOrder
const ZOrder DefaultZOrder(64)
默认 Z 顺序值。