YSTest
PreAlpha_b380_20130211
The YSLib Test Project
|
标签模块。 More...
#include <label.h>
Public Attributes | |
Drawing::Font | Font |
字体。 | |
Drawing::Padding | Margin |
文本和容器的间距。 | |
TextAlignment | HorizontalAlignment |
文本水平和竖直对齐属性。 | |
TextAlignment | VerticalAlignment |
bool | AutoWrapLine |
启用自动换行。 | |
String | Text |
标签文本。 | |
Protected Member Functions | |
MLabel (const Drawing::Font &={}, TextAlignment=TextAlignment::Left) | |
构造:使用指定字体。 | |
MLabel (MLabel &&)=default | |
void | DrawText (const Size &, Color, const PaintContext &) |
绘制文本。 | |
Additional Inherited Members | |
![]() | |
noncopyable (const noncopyable &)=delete | |
禁止复制构造。 | |
noncopyable & | operator= (const noncopyable &)=delete |
禁止赋值复制。 | |
noncopyable ()=default | |
protected 构造:默认实现。 | |
~noncopyable ()=default | |
protected 析构:默认实现。 | |
|
explicitprotected |
构造:使用指定字体。
|
inlineprotecteddefault |
|
protected |
绘制文本。
Definition at line 43 of file label.cpp.
References 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, and yunseq.
Referenced by YSLib::Components::CheckButton::Refresh().
bool YSLib::Components::MLabel::AutoWrapLine |
Drawing::Font YSLib::Components::MLabel::Font |
TextAlignment YSLib::Components::MLabel::HorizontalAlignment |
Drawing::Padding YSLib::Components::MLabel::Margin |
文本和容器的间距。
Definition at line 59 of file label.h.
Referenced by YSLib::Components::CheckButton::CheckButton(), YSLib::Components::CheckButton::Refresh(), and YSLib::Components::MTextList::RefreshTextState().
String YSLib::Components::MLabel::Text |
标签文本。
Definition at line 73 of file label.h.
Referenced by YSLib::Components::DialogPanel::DialogPanel().
TextAlignment YSLib::Components::MLabel::VerticalAlignment |