YSTest  PreAlpha_b400_20130424
The YSLib Test Project
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
YSLib::UI::TextArea类 参考

文本区域。 更多...

#include <textarea.h>

类 YSLib::UI::TextArea 继承关系图:
YSLib::UI::TextArea 的协作图:

Public 成员函数

 TextArea (const Drawing::Rect &={})
 构造:使用指定边界和默认字型缓存。
 
 TextArea (const Drawing::Rect &, Drawing::FontCache &)
 构造:使用指定边界和字体缓存。
 
 TextArea (TextArea &&)=default
 
- Public 成员函数 继承自 YSLib::UI::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 RendererGetRenderer () const ynothrow
 取渲染器。
 
virtual ViewGetView () const ynothrow
 取部件视图。
 
virtual AControllerGetController () 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 成员函数 继承自 YSLib::UI::IWidget
virtual ~IWidget ()
 
- Public 成员函数 继承自 YSLib::Drawing::TextState
 TextState (const Drawing::Font &={})
 构造:使用指定字体。
 
 TextState (FontCache &)
 构造:使用指定字体缓存。
 
TextStateoperator= (const PenStyle &ps)
 赋值:笔样式。
 
TextStateoperator= (const Padding &ms)
 赋值:边距。
 
void PutNewline ()
 打印换行。
 
void ResetPen ()
 复位笔:按字体大小设置笔位置为默认位置。
 
void ResetPen (const Point &, const Padding &={})
 按指定显示区域左上角位置和附加边距重新设置笔位置。
 
- Public 成员函数 继承自 YSLib::Drawing::TextRenderer
 TextRenderer (TextState &ts, const Graphics &g)
 
 TextRenderer (TextState &ts, const Graphics &g, const Rect &mask)
 
void operator() (ucs4_t)
 渲染单个字符。
 
const TextStateGetTextState () const ynothrow
 
TextStateGetTextState () ynothrow
 
const GraphicsGetContext () const ynothrow
 
void ClearLine (u16 l, SDst n)
 清除缓冲区第 l 行起始的 n 行像素。
 
SDst GetHeight () const ynothrow
 
SDst GetWidth () const ynothrow
 
const SizeGetSize () const ynothrow
 
- Public 成员函数 继承自 YSLib::Drawing::GTextRendererBase< TextRenderer >
u16 GetTextLineN () const
 取按当前行高和行距所能显示的最大行数。
 
u16 GetTextLineNEx () const
 取按当前行高和行距(行间距数小于行数 1 )所能显示的最大行数。
 

Public 属性

Drawing::Rotation Rotation
 屏幕指向。
 
- Public 属性 继承自 YSLib::UI::Widget
HBrush Background
 背景。
 
Color ForeColor
 默认前景色。
 
- Public 属性 继承自 YSLib::Drawing::TextState
Padding Margin
 边距:文本区域到显示区域的距离。
 
Point Pen
 笔坐标。
 
u8 LineGap
 行距。
 
- Public 属性 继承自 YSLib::Drawing::TextRenderer
TextStateState
 
const GraphicsBuffer
 
Rect ClipArea
 

额外继承的成员函数

- Protected 成员函数 继承自 YSLib::Drawing::PenStyle
 PenStyle (const Drawing::Font &fnt={}, Drawing::Color c=Drawing::ColorSpace::White)
 构造:使用指定字体家族、字体大小和颜色。
 
const FontFamilyGetFontFamily () const ynothrow
 
FontCacheGetCache () const ynothrow
 
- Protected 属性 继承自 YSLib::Drawing::PenStyle
Drawing::Font Font
 字体。
 
Drawing::Color Color
 笔颜色。
 

详细描述

文本区域。

在文件 textarea.h42 行定义.

构造及析构函数说明

YSLib::UI::TextArea::TextArea ( const Drawing::Rect = {})
explicit

构造:使用指定边界和默认字型缓存。

自从
build 337
YSLib::UI::TextArea::TextArea ( const Drawing::Rect ,
Drawing::FontCache  
)

构造:使用指定边界和字体缓存。

自从
build 296
YSLib::UI::TextArea::TextArea ( TextArea &&  )
inlinedefault

类成员变量说明

Drawing::Rotation YSLib::UI::TextArea::Rotation

屏幕指向。

在文件 textarea.h46 行定义.


该类的文档由以下文件生成: