YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ywindow.h
浏览该文件的文档.
1 /*
2  © 2009-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_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>());
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::conditional_t<
66  std::is_convertible<_type&, Window&>::value, 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::conditional_t<
78  std::is_convertible<_type&, Window&>::value, Window&, IWidget&>(p));
79  }
80 
82 
83  void
84  Add(IWidget&, ZOrderType = DefaultZOrder) override;
85 };
86 
87 } // namespace UI;
88 
89 } // namespace YSLib;
90 
91 #endif
92 
typename conditional< _bCond, _type, _type2 >::type conditional_t
Definition: type_op.hpp:277
bool Contains(IWidget &)
判断是否包含指定部件。
Definition: yuicont.cpp:222
#define YF_API
Definition: Platform.h:64
面板。
Definition: ypanel.h:45
窗口。
Definition: ywindow.h:44
void operator+=(_type &p)
Definition: ywindow.h:63
窗口背景。
Definition: ystyle.h:182
屏幕标准矩形:表示屏幕矩形区域。
Definition: ygdibase.h:416
u8 ZOrderType
Definition: yuicont.h:146
bool operator-=(_type &p)
Definition: ywindow.h:75
const ZOrderType DefaultZOrder(64)
默认 Z 顺序值。
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow