YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
线性部件容器模块。 更多...
#include <yuicont.h>
Public 类型 | |
using | ItemType = IWidget * |
部件组项目类型。 更多... | |
using | WidgetVector = vector< ItemType > |
部件组类型。 更多... | |
using | iterator = WidgetIterator |
Public 成员函数 | |
*vWidgets[idx]*vWidgets[idx] bool | Contains (IWidget &) const |
判断是否包含指定部件。 更多... | |
DefGetter (const ynothrow, size_t, Count, vWidgets.size()) size_t Find(IWidget &) const | |
取部件数。 更多... | |
PDefHOp (IWidget &, [], size_t idx) ynothrowv ImplRet(YAssertNonnull(vWidgets[idx]) | |
取指定索引的部件引用。 更多... | |
YAssert (idx< GetCount(),"Index is out of range.") | |
*vWidgets[idx] | PDefHOp (IWidget &, [], size_t idx) const ynothrowv ImplRet(YAssertNonnull(vWidgets[idx]) |
*vWidgets[idx] | YAssert (idx< GetCount(),"Index is out of range.") |
Public 属性 | |||
PDefH(IWidget &, at, size_t idx) ythrow(std iterator | end () | ||
取指定索引的部件引用。
| |||
Protected 成员函数 | |
DefDeCtor (MLinearUIContainer) DefDeMoveCtor(MLinearUIContainer) void operator+ | |
无参数构造:默认实现。 更多... | |
bool | operator-= (IWidget &) |
从部件组移除部件。 更多... | |
void | PaintVisibleChildren (PaintEventArgs &) |
绘制可视子部件。 更多... | |
Protected 属性 | |
WidgetVector | vWidgets |
using YSLib::UI::MLinearUIContainer::ItemType = IWidget* |
using YSLib::UI::MLinearUIContainer::WidgetVector = vector<ItemType> |
bool YSLib::UI::MLinearUIContainer::Contains | ( | IWidget & | wgt | ) | const |
|
protected |
无参数构造:默认实现。
向部件组添加部件。
YSLib::UI::MLinearUIContainer::DefGetter | ( | const ynothrow | , |
size_t | , | ||
Count | , | ||
vWidgets. | size() | ||
) | const |
取部件数。
查找部件。
|
protected |
从部件组移除部件。
从部件组移除部件。
在文件 yuicont.cpp 第 165 行定义.
参考 ystdex::erase_all() , 以及 YAssert.
参考自 YSLib::UI::TabBar::operator-=().
|
protected |
绘制可视子部件。
YSLib::UI::MLinearUIContainer::PDefHOp | ( | IWidget & | , |
size_t | idx | ||
) |
取指定索引的部件引用。
* vWidgets [idx] YSLib::UI::MLinearUIContainer::PDefHOp | ( | IWidget & | , |
size_t | idx | ||
) | const |
YSLib::UI::MLinearUIContainer::YAssert | ( | ) |
* vWidgets [idx] YSLib::UI::MLinearUIContainer::YAssert | ( | ) |
MLinearUIContainer::iterator YSLib::UI::MLinearUIContainer::end |
|
protected |