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

定制文本渲染器:使用自定义的渲染函数替代的 TextRenderer更多...

#include <TextRenderer.h>

类 YSLib::Drawing::CustomTextRenderer 继承关系图:
YSLib::Drawing::CustomTextRenderer 的协作图:

Public 类型

using RenderFunctionType = std::function< void(TextRenderer &, ucs4_t)>
 

Public 成员函数

 CustomTextRenderer (RenderFunctionType f, TextState &ts, const Graphics &g)
 
 CustomTextRenderer (RenderFunctionType f, TextState &ts, const Graphics &g, const Rect &mask)
 
 PDefHOp (void,(), ucs4_t c) ImplExpr(RenderFunction(*this
 渲染单个字符。 更多...
 
- Public 成员函数 继承自 YSLib::Drawing::TextRenderer
 TextRenderer (TextState &ts, const Graphics &g)
 
 TextRenderer (TextState &ts, const Graphics &g, const Rect &mask)
 
void operator() (ucs4_t)
 渲染单个字符。 更多...
 
 ImplS (GTextRendererBase) DefGetter(const ynothrow
 
const TextState State ImplS (GTextRendererBase) DefGetter(ynothrow
 
const TextState State
TextState State 
ImplS (GTextRendererBase) DefGetter(const ynothrow
 
const TextState State
TextState State const Graphics
Buffer 
DefGetterMem (const ynothrow, SDst, Height, Buffer) DefGetterMem(const ynothrow
 
const TextState State
TextState State const Graphics
Buffer Buffer 
DefGetterMem (const ynothrow, const Size &, Size, Buffer) void ClearLine(u16 l
 清除缓冲区第 l 行起始的 n 行像素。 更多...
 
- Public 成员函数 继承自 YSLib::Drawing::GTextRendererBase< TextRenderer >
 DeclSEntry (const TextState &GetTextState() const) DeclSEntry(TextState &GetTextState()) DeclSEntry(const Graphics &GetContext() const ) DefGetter(const
 < 取文本状态。 更多...
 
 FetchResizedLineN (static_cast< const TextRenderer * >(this) ->GetTextState(), static_cast< const TextRenderer * >(this) ->GetContext().GetHeight())) DefGetter(const
 取按当前行高和行距(行间距数小于行数 1 )所能显示的最大行数。 更多...
 
- Public 成员函数 继承自 YSLib::Drawing::GTextRendererBase< CustomTextRenderer >
 DeclSEntry (const TextState &GetTextState() const) DeclSEntry(TextState &GetTextState()) DeclSEntry(const Graphics &GetContext() const ) DefGetter(const
 < 取文本状态。 更多...
 
 FetchResizedLineN (static_cast< const CustomTextRenderer * >(this) ->GetTextState(), static_cast< const CustomTextRenderer * >(this) ->GetContext().GetHeight())) DefGetter(const
 取按当前行高和行距(行间距数小于行数 1 )所能显示的最大行数。 更多...
 

Public 属性

RenderFunctionType RenderFunction
 
- Public 属性 继承自 YSLib::Drawing::TextRenderer
TextStateState
 
const GraphicsBuffer
 
Rect ClipArea
 
const TextState TextState
 
const TextState State TextState TextState
 
const TextState State
TextState State const Graphics 
Context
 
const TextState State
TextState State const Graphics
Buffer 
SDst
 
const TextState State
TextState State const Graphics
Buffer 
Width
 
const TextState State
TextState State const Graphics
Buffer Buffer SDst 
n
 
- Public 属性 继承自 YSLib::Drawing::GTextRendererBase< TextRenderer >
 u16
 
 TextLineN
 
 TextLineNEx
 
- Public 属性 继承自 YSLib::Drawing::GTextRendererBase< CustomTextRenderer >
 u16
 
 TextLineN
 
 TextLineNEx
 

详细描述

定制文本渲染器:使用自定义的渲染函数替代的 TextRenderer

警告
非虚析构。
自从
build 485

在文件 TextRenderer.h416 行定义.

成员类型定义说明

在文件 TextRenderer.h420 行定义.

构造及析构函数说明

YSLib::Drawing::CustomTextRenderer::CustomTextRenderer ( RenderFunctionType  f,
TextState ts,
const Graphics g 
)
inline

在文件 TextRenderer.h424 行定义.

YSLib::Drawing::CustomTextRenderer::CustomTextRenderer ( RenderFunctionType  f,
TextState ts,
const Graphics g,
const Rect mask 
)
inline

在文件 TextRenderer.h427 行定义.

成员函数说明

YSLib::Drawing::CustomTextRenderer::PDefHOp ( void  ,
()  ,
ucs4_t  c 
)

渲染单个字符。

注解
使用 RenderFunction 。

类成员变量说明

RenderFunctionType YSLib::Drawing::CustomTextRenderer::RenderFunction

在文件 TextRenderer.h422 行定义.


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