YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
部件容器模块。 更多...
#include <yuicont.h>
Public 类型 | |
typedef IWidget * | ItemType |
部件组项目类型。 | |
typedef multimap< ZOrderType, ItemType > | WidgetMap |
部件映射表类型:映射 Z 顺序至部件。 | |
typedef WidgetMap::value_type | PairType |
typedef WidgetIterator | Iterator |
Public 成员函数 | |
bool | Contains (IWidget &) |
判断是否包含指定部件。 | |
Iterator | GetBegin () |
Iterator | GetEnd () |
void | Add (IWidget &, ZOrderType=DefaultZOrder) |
向部件组添加部件。 | |
Protected 成员函数 | |
MUIContainer ()=default | |
无参数构造:默认实现。 | |
MUIContainer (MUIContainer &&)=default | |
void | operator+= (IWidget &wgt) |
向部件组添加部件。 | |
bool | operator-= (IWidget &) |
从部件组移除部件。 | |
void | PaintVisibleChildren (PaintEventArgs &) |
绘制可视子部件。 | |
Protected 属性 | |
WidgetMap | mWidgets |
typedef IWidget* YSLib::UI::MUIContainer::ItemType |
typedef WidgetMap::value_type YSLib::UI::MUIContainer::PairType |
typedef multimap<ZOrderType, ItemType> YSLib::UI::MUIContainer::WidgetMap |
|
protecteddefault |
无参数构造:默认实现。
|
inlineprotecteddefault |
void MUIContainer::Add | ( | IWidget & | wgt, |
ZOrderType | z = DefaultZOrder |
||
) |
向部件组添加部件。
向焦点对象组添加焦点对象,同时向部件组按指定 Z 顺序值添加部件。
在文件 yuicont.cpp 第 176 行定义.
参考 Contains().
bool MUIContainer::Contains | ( | IWidget & | wgt | ) |
MUIContainer::Iterator MUIContainer::GetBegin | ( | ) |
MUIContainer::Iterator MUIContainer::GetEnd | ( | ) |
|
inlineprotected |
|
protected |
从部件组移除部件。
从部件组移除部件,同时从焦点对象组移除焦点对象。
在文件 yuicont.cpp 第 145 行定义.
参考 ystdex::erase_all(),ystdex::get_value , 以及 YAssert.
|
protected |
绘制可视子部件。
在文件 yuicont.cpp 第 192 行定义.
参考 YSLib::Drawing::PaintContext::ClipArea,ystdex::get_value,YSLib::UI::IsVisible(),YSLib::UI::PaintChild() , 以及 YAssert.