YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
文本区域。 更多...
#include <textarea.h>
Public 成员函数 | |
TextArea (const Drawing::Rect &={}) | |
构造:使用指定边界和默认字型缓存。 | |
TextArea (const Drawing::Rect &, Drawing::FontCache &) | |
构造:使用指定边界和字体缓存。 | |
TextArea (TextArea &&)=default | |
![]() | |
Widget (const Rect &={}, Color=Drawing::ColorSpace::White, Color=Drawing::ColorSpace::Black) | |
template<typename _tView , typename _tRenderer , typename _tController > | |
Widget (_tView &&pView_=make_unique< View >(), _tRenderer &&pRenderer_=make_unique< Renderer >(), _tController &&pController_={}) | |
构造:使用视图指针、渲染器指针和控制器指针,无背景。 | |
Widget (const Widget &) | |
复制构造:除容器指针为空外深复制。 | |
Widget (Widget &&)=default | |
virtual | ~Widget () |
析构:虚实现。 | |
SPos | GetX () const ynothrow |
SPos | GetY () const ynothrow |
SDst | GetWidth () const ynothrow |
SDst | GetHeight () const ynothrow |
virtual Renderer & | GetRenderer () const ynothrow |
取渲染器。 | |
virtual View & | GetView () const ynothrow |
取部件视图。 | |
virtual AController & | GetController () const override |
取控制器。 | |
virtual WidgetRange | GetChildren () override |
void | SetX (SDst _tempArgName) |
void | SetY (SDst _tempArgName) |
void | SetWidth (SDst _tempArgName) |
void | SetHeight (SDst _tempArgName) |
void | SetRenderer (unique_ptr< Renderer > &&) |
设置渲染器为指定指针指向的对象,同时更新渲染器状态。 | |
void | SetView (unique_ptr< View > &&) |
设置渲染器为指定指针指向的对象,同时更新渲染器状态。 | |
virtual void | Refresh (PaintEventArgs &&) |
刷新:按指定参数绘制界面并更新状态。 | |
![]() | |
virtual | ~IWidget () |
![]() | |
TextState (const Drawing::Font &={}) | |
构造:使用指定字体。 | |
TextState (FontCache &) | |
构造:使用指定字体缓存。 | |
TextState & | operator= (const PenStyle &ps) |
赋值:笔样式。 | |
TextState & | operator= (const Padding &ms) |
赋值:边距。 | |
void | PutNewline () |
打印换行。 | |
void | ResetPen () |
复位笔:按字体大小设置笔位置为默认位置。 | |
void | ResetPen (const Point &, const Padding &={}) |
按指定显示区域左上角位置和附加边距重新设置笔位置。 | |
![]() | |
TextRenderer (TextState &ts, const Graphics &g) | |
TextRenderer (TextState &ts, const Graphics &g, const Rect &mask) | |
void | operator() (ucs4_t) |
渲染单个字符。 | |
const TextState & | GetTextState () const ynothrow |
TextState & | GetTextState () ynothrow |
const Graphics & | GetContext () const ynothrow |
void | ClearLine (u16 l, SDst n) |
清除缓冲区第 l 行起始的 n 行像素。 | |
SDst | GetHeight () const ynothrow |
SDst | GetWidth () const ynothrow |
const Size & | GetSize () const ynothrow |
![]() | |
u16 | GetTextLineN () const |
取按当前行高和行距所能显示的最大行数。 | |
u16 | GetTextLineNEx () const |
取按当前行高和行距(行间距数小于行数 1 )所能显示的最大行数。 | |
Public 属性 | |
Drawing::Rotation | Rotation |
屏幕指向。 | |
![]() | |
HBrush | Background |
背景。 | |
Color | ForeColor |
默认前景色。 | |
![]() | |
Padding | Margin |
边距:文本区域到显示区域的距离。 | |
Point | Pen |
笔坐标。 | |
u8 | LineGap |
行距。 | |
![]() | |
TextState & | State |
const Graphics & | Buffer |
Rect | ClipArea |
额外继承的成员函数 | |
![]() | |
PenStyle (const Drawing::Font &fnt={}, Drawing::Color c=Drawing::ColorSpace::White) | |
构造:使用指定字体家族、字体大小和颜色。 | |
const FontFamily & | GetFontFamily () const ynothrow |
FontCache & | GetCache () const ynothrow |
![]() | |
Drawing::Font | Font |
字体。 | |
Drawing::Color | Color |
笔颜色。 | |
文本区域。
在文件 textarea.h 第 42 行定义.
|
explicit |
构造:使用指定边界和默认字型缓存。
YSLib::UI::TextArea::TextArea | ( | const Drawing::Rect & | , |
Drawing::FontCache & | |||
) |
构造:使用指定边界和字体缓存。
|
inlinedefault |
Drawing::Rotation YSLib::UI::TextArea::Rotation |
屏幕指向。
在文件 textarea.h 第 46 行定义.