|
YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
标签模块。 更多...
#include <label.h>


Public 属性 | |
| Drawing::Font | Font |
| 字体。 | |
| Drawing::Padding | Margin |
| 文本和容器的间距。 | |
| TextAlignment | HorizontalAlignment |
| 文本水平和竖直对齐属性。 | |
| TextAlignment | VerticalAlignment |
| bool | AutoWrapLine |
| 启用自动换行。 | |
| String | Text |
| 标签文本。 | |
Protected 成员函数 | |
| MLabel (const Drawing::Font &={}, TextAlignment=TextAlignment::Left) | |
| 构造:使用指定字体。 | |
| MLabel (MLabel &&)=default | |
| void | DrawText (const Size &, Color, const PaintContext &) |
| 绘制文本。 | |
额外继承的成员函数 | |
Private 成员函数 继承自 ystdex::noncopyable | |
| noncopyable (const noncopyable &)=delete | |
| 禁止复制构造。 | |
| noncopyable & | operator= (const noncopyable &)=delete |
| 禁止赋值复制。 | |
| noncopyable ()=default | |
protected 构造:默认实现。 | |
| ~noncopyable ()=default | |
protected 析构:默认实现。 | |
|
explicitprotected |
构造:使用指定字体。
|
inlineprotecteddefault |
|
protected |
绘制文本。
参考 YSLib::Drawing::PaintContext::ClipArea,YSLib::Drawing::PenStyle::Color,platform::KeyCodes::Down,YSLib::Drawing::DrawClippedText(),FetchMargin(),YSLib::Drawing::FetchStringWidth(),YSLib::Drawing::PenStyle::Font,YSLib::Drawing::GetHorizontalOf(),YSLib::Drawing::Graphics::GetSize(),YSLib::Drawing::GetTextLineHeightOf(),YSLib::Drawing::GetVerticalOf(),YSLib::Drawing::Size::Height,platform::KeyCodes::Left,YSLib::Drawing::PaintContext::Location,YSLib::Drawing::TextState::Margin,YSLib::Drawing::TextState::Pen,YSLib::Drawing::TextState::ResetPen(),platform::KeyCodes::Right,YSLib::Drawing::PaintContext::Target,platform::KeyCodes::Up,YSLib::Drawing::Size::Width,YSLib::Drawing::GBinaryGroup< _type >::X,YSLib::Drawing::GBinaryGroup< _type >::Y , 以及 yunseq().
参考自 YSLib::UI::CheckButton::Refresh().


| Drawing::Font YSLib::UI::MLabel::Font |
| TextAlignment YSLib::UI::MLabel::HorizontalAlignment |
| Drawing::Padding YSLib::UI::MLabel::Margin |
| TextAlignment YSLib::UI::MLabel::VerticalAlignment |