YSTest  PreAlpha_b500_20140530
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
ypanel.h
浏览该文件的文档.
1 /*
2  © 2012-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_ypanel_h_
29 #define YSL_INC_UI_ypanel_h_ 1
30 
31 #include "YModules.h"
32 #include YFM_YSLib_UI_YControl
33 #include YFM_YSLib_UI_YUIContainer
34 
35 namespace YSLib
36 {
37 
38 namespace UI
39 {
40 
45 class YF_API Panel : public Control, protected MUIContainer
46 {
47 public:
52  explicit
53  Panel(const Rect& = {});
55 
56  virtual void
57  operator+=(IWidget&);
58 
59  virtual bool
60  operator-=(IWidget&);
61 
63 
68  DefGetter(override, WidgetRange, Children, WidgetRange(begin(), end()))
69 
70 
75  virtual void
76  Add(IWidget&, ZOrderType = DefaultZOrder);
77 
83  void
84  ClearContents();
85 
92  bool
93  MoveToFront(IWidget&);
94 
97 
102  void
103  Refresh(PaintEventArgs&&) override;
104 
106 
107  using MUIContainer::begin;
108 
109  using MUIContainer::end;
111 };
112 
113 } // namespace UI;
114 
115 } // namespace YSLib;
116 
117 #endif
118 
void Refresh(PaintEventArgs &&) override
刷新:按指定参数绘制界面并更新状态。
ZOrderType QueryZ(IWidget &) const
查询指定部件的 Z 顺序。
Definition: yuicont.cpp:242
bool Contains(IWidget &)
判断是否包含指定部件。
Definition: yuicont.cpp:222
部件绘制参数。
Definition: ywgtevt.h:276
#define YF_API
Definition: Platform.h:64
面板。
Definition: ypanel.h:45
#define DefGetter(_q, _t, _n,...)
Definition: YBaseMacro.h:180
控件。
Definition: ycontrol.h:275
pair< WidgetIterator, WidgetIterator > WidgetRange
两个部件迭代器组成的左闭右开区间确定的迭代器范围。
Definition: ywidget.h:57
屏幕标准矩形:表示屏幕矩形区域。
Definition: ygdibase.h:416
u8 ZOrderType
Definition: yuicont.h:146
面板背景。
Definition: ystyle.h:183
const ZOrderType DefaultZOrder(64)
默认 Z 顺序值。
Selected const shared_ptr< ListType > const pair< Color, Color > & DefDeMoveCtor(TextList) DefPredMem(const ynothrow
部件容器模块。
Definition: yuicont.h:279