|
YSTest
PreAlpha_b380_20130211
The YSLib Test Project
|
文本区域。 More...
#include <textarea.h>


Public Member Functions | |
| TextArea (const Drawing::Rect &={}) | |
| 构造:使用指定边界和默认字型缓存。 | |
| TextArea (const Drawing::Rect &, Drawing::FontCache &) | |
| 构造:使用指定边界和字体缓存。 | |
| TextArea (TextArea &&)=default | |
Public Member Functions inherited from YSLib::Components::Widget | |
| 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 &&) |
| 刷新:按指定参数绘制界面并更新状态。 | |
Public Member Functions inherited from YSLib::Components::IWidget | |
| virtual | ~IWidget () |
Public Member Functions inherited from YSLib::Drawing::TextState | |
| 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 &={}) |
| 按指定显示区域左上角位置和附加边距重新设置笔位置。 | |
Public Member Functions inherited from YSLib::Drawing::TextRenderer | |
| 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 |
Public Member Functions inherited from YSLib::Drawing::GTextRendererBase< TextRenderer > | |
| u16 | GetTextLineN () const |
| 取按当前行高和行距所能显示的最大行数。 | |
| u16 | GetTextLineNEx () const |
| 取按当前行高和行距(行间距数小于行数 1 )所能显示的最大行数。 | |
Public Attributes | |
| Drawing::Rotation | Rotation |
| 屏幕指向。 | |
Public Attributes inherited from YSLib::Components::Widget | |
| HBrush | Background |
| 背景。 | |
| Color | ForeColor |
| 默认前景色。 | |
Public Attributes inherited from YSLib::Drawing::TextState | |
| Padding | Margin |
| 边距:文本区域到显示区域的距离。 | |
| Point | Pen |
| 笔坐标。 | |
| u8 | LineGap |
| 行距。 | |
Public Attributes inherited from YSLib::Drawing::TextRenderer | |
| TextState & | State |
| const Graphics & | Buffer |
| Rect | ClipArea |
Additional Inherited Members | |
Protected Member Functions inherited from YSLib::Drawing::PenStyle | |
| PenStyle (const Drawing::Font &fnt={}, Drawing::Color c=Drawing::ColorSpace::White) | |
| 构造:使用指定字体家族、字体大小和颜色。 | |
| const FontFamily & | GetFontFamily () const ynothrow |
| FontCache & | GetCache () const ynothrow |
Protected Attributes inherited from YSLib::Drawing::PenStyle | |
| Drawing::Font | Font |
| 字体。 | |
| Drawing::Color | Color |
| 笔颜色。 | |
文本区域。
Definition at line 42 of file textarea.h.
|
explicit |
构造:使用指定边界和默认字型缓存。
| YSLib::Components::TextArea::TextArea | ( | const Drawing::Rect & | , |
| Drawing::FontCache & | |||
| ) |
构造:使用指定边界和字体缓存。
|
inlinedefault |
| Drawing::Rotation YSLib::Components::TextArea::Rotation |
屏幕指向。
Definition at line 46 of file textarea.h.