YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
文本列表模块。 更多...
#include <label.h>
Public 类型 | |
using | ItemType = String |
项目类型:字符串。 更多... | |
using | ListType = vector< ItemType > |
列表类型。 更多... | |
using | IndexType = typename ListType::size_type |
索引类型。 更多... | |
Protected 成员函数 | |
MTextList (const shared_ptr< ListType > &={}, const Drawing::Font &={}) | |
构造:使用文本列表句柄和字体指针。 更多... | |
DefDeMoveCtor(MTextList) public const ItemType * | GetItemPtr (const IndexType &) const |
取文本列表。 更多... | |
DefGetter (const ynothrow, SDst, ItemHeight, GetTextLineHeightExOf(tsList)) SDst GetMaxTextWidth() const | |
取项目行高。 更多... | |
void | SetList (const shared_ptr< ListType > &h) |
设置文本列表。 更多... | |
IndexType | Find (const ItemType &) const |
查找项。 更多... | |
void | RefreshTextState () |
刷新文本状态。 更多... | |
Protected 属性 | |
shared_ptr< ListType > | hList |
文本列表句柄。 更多... | |
Drawing::TextState | tsList |
列表文本状态。 更多... | |
额外继承的成员函数 | |
![]() | |
MLabel (const Drawing::Font &={}, TextAlignment=TextAlignment::Left) | |
构造:使用指定字体。 更多... | |
DefDeMoveCtor (MLabel) virtual DefDeDtor(MLabel) void DrawText(const Size & | |
绘制文本。 更多... | |
const PaintContext &virtual void | DrawClippedText (const Graphics &, const Rect &, Drawing::TextState &) |
绘制剪切文本:使用指定的图形接口上下文、相对于部件的边界和文本状态。 更多... | |
![]() | |
Drawing::Font | Font |
字体。 更多... | |
Drawing::Padding | Margin |
文本和容器的间距。 更多... | |
TextAlignment | HorizontalAlignment |
文本水平和竖直对齐属性。 更多... | |
TextAlignment | VerticalAlignment |
bool | AutoWrapLine |
启用自动换行。 更多... | |
String | Text |
标签文本。 更多... | |
Color | |
using YSLib::UI::MTextList::IndexType = typename ListType::size_type |
using YSLib::UI::MTextList::ItemType = String |
using YSLib::UI::MTextList::ListType = vector<ItemType> |
|
explicitprotected |
|
protected |
取项目行高。
取文本列表中的最大文本宽度。
|
protected |
|
protected |
|
protected |
刷新文本状态。
参考 YSLib::Drawing::PenStyle::Font, YSLib::Drawing::GetVerticalOf(), YSLib::Drawing::TextState::LineGap, YSLib::UI::MLabel::Margin, tsList , 以及 yunseq.
|
inlineprotected |
|
mutableprotected |
|
protected |