|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
文本列表模块。 更多...
#include <label.h>


Public 类型 | |
| typedef String | ItemType |
| 项目类型:字符串。 | |
| typedef vector< ItemType > | ListType |
| 列表类型。 | |
| typedef ListType::size_type | IndexType |
| 索引类型。 | |
Public 成员函数 | |
| const ListType & | GetList () const ynothrow |
| 取文本列表。 | |
| ListType & | GetListRef () ynothrow |
| 取文本列表引用。 | |
| ItemType * | GetItemPtr (const IndexType &) |
| 取指定项目索引的项目指针。 | |
| const ItemType * | GetItemPtr (const IndexType &) const |
| 取指定项目索引的项目 const 指针。 | |
| SDst | GetItemHeight () const ynothrow |
| 取项目行高。 | |
| SDst | GetMaxTextWidth () const |
| 取文本列表中的最大文本宽度。 | |
| void | SetList (const shared_ptr< ListType > &h) |
| 设置文本列表。 | |
| IndexType | Find (const ItemType &) const |
| 查找项。 | |
| void | RefreshTextState () |
| 刷新文本状态。 | |
Protected 成员函数 | |
| MTextList (const shared_ptr< ListType > &={}, const Drawing::Font &={}) | |
| 构造:使用文本列表句柄和字体指针。 | |
| MTextList (MTextList &&)=default | |
Protected 成员函数 继承自 YSLib::UI::MLabel | |
| MLabel (const Drawing::Font &={}, TextAlignment=TextAlignment::Left) | |
| 构造:使用指定字体。 | |
| MLabel (MLabel &&)=default | |
| void | DrawText (const Size &, Color, const PaintContext &) |
| 绘制文本。 | |
Protected 属性 | |
| shared_ptr< ListType > | hList |
| 文本列表句柄。 | |
| Drawing::TextState | tsList |
| 列表文本状态。 | |
额外继承的成员函数 | |
Public 属性 继承自 YSLib::UI::MLabel | |
| Drawing::Font | Font |
| 字体。 | |
| Drawing::Padding | Margin |
| 文本和容器的间距。 | |
| TextAlignment | HorizontalAlignment |
| 文本水平和竖直对齐属性。 | |
| TextAlignment | VerticalAlignment |
| bool | AutoWrapLine |
| 启用自动换行。 | |
| String | Text |
| 标签文本。 | |
| typedef ListType::size_type YSLib::UI::MTextList::IndexType |
| typedef String YSLib::UI::MTextList::ItemType |
| typedef vector<ItemType> YSLib::UI::MTextList::ListType |
|
explicitprotected |
构造:使用文本列表句柄和字体指针。
|
inlineprotecteddefault |
| MTextList::IndexType MTextList::Find | ( | const ItemType & | text | ) | const |
取指定项目索引的项目 const 指针。
|
inline |
| SDst MTextList::GetMaxTextWidth | ( | ) | const |
| void MTextList::RefreshTextState | ( | ) |
|
inline |
|
protected |