|
YSTest
PreAlpha_b380_20130211
The YSLib Test Project
|
部件容器模块。 More...
#include <yuicont.h>


Public Types | |
| typedef IWidget * | ItemType |
| 部件组项目类型。 | |
| typedef multimap< ZOrderType, ItemType > | WidgetMap |
| 部件映射表类型:映射 Z 顺序至部件。 | |
| typedef WidgetMap::value_type | PairType |
| typedef WidgetIterator | Iterator |
Public Member Functions | |
| bool | Contains (IWidget &) |
| 判断是否包含指定部件。 | |
| Iterator | GetBegin () |
| Iterator | GetEnd () |
| void | Add (IWidget &, ZOrderType=DefaultZOrder) |
| 向部件组添加部件。 | |
Protected Member Functions | |
| MUIContainer ()=default | |
| 无参数构造:默认实现。 | |
| MUIContainer (MUIContainer &&)=default | |
| void | operator+= (IWidget &wgt) |
| 向部件组添加部件。 | |
| bool | operator-= (IWidget &) |
| 从部件组移除部件。 | |
| void | PaintVisibleChildren (PaintEventArgs &) |
| 绘制可视子部件。 | |
Protected Attributes | |
| WidgetMap | mWidgets |
| typedef WidgetMap::value_type YSLib::Components::MUIContainer::PairType |
| typedef multimap<ZOrderType, ItemType> YSLib::Components::MUIContainer::WidgetMap |
|
protecteddefault |
无参数构造:默认实现。
|
inlineprotecteddefault |
| void MUIContainer::Add | ( | IWidget & | wgt, |
| ZOrderType | z = DefaultZOrder |
||
| ) |
向部件组添加部件。
向焦点对象组添加焦点对象,同时向部件组按指定 Z 顺序值添加部件。
Definition at line 176 of file yuicont.cpp.
References Contains().

| bool MUIContainer::Contains | ( | IWidget & | wgt | ) |
判断是否包含指定部件。
Definition at line 183 of file yuicont.cpp.
References ystdex::get_value.
Referenced by YSLib::Components::MenuHost::IsShowing().

| MUIContainer::Iterator MUIContainer::GetBegin | ( | ) |
Definition at line 161 of file yuicont.cpp.
References ystdex::get_indirect, and ystdex::get_value.
| MUIContainer::Iterator MUIContainer::GetEnd | ( | ) |
Definition at line 168 of file yuicont.cpp.
References ystdex::get_indirect, and ystdex::get_value.
|
inlineprotected |
|
protected |
从部件组移除部件。
从部件组移除部件,同时从焦点对象组移除焦点对象。
Definition at line 145 of file yuicont.cpp.
References ystdex::erase_all(), ystdex::get_value, and YAssert.

|
protected |
绘制可视子部件。
Definition at line 192 of file yuicont.cpp.
References YSLib::Drawing::PaintContext::ClipArea, ystdex::get_value, YSLib::Components::IsVisible(), YSLib::Components::PaintChild(), and YAssert.

|
protected |