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

文本渲染器:简单实现。 更多...

#include <TextRenderer.h>

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

Public 成员函数

 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
 
- 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 属性

TextStateState
 
const GraphicsBuffer
 
Rect ClipArea
 
const TextState TextState
 
const TextState State TextState TextState
 
const TextState State
TextState State const Graphics 
Context
 
- Public 属性 继承自 YSLib::Drawing::GTextRendererBase< TextRenderer >
 u16
 
 TextLineN
 
 TextLineNEx
 
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
 
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 行像素。 更多...
 

详细描述

文本渲染器:简单实现。

警告
非虚析构。
自从
build 190

在文件 TextRenderer.h361 行定义.

构造及析构函数说明

YSLib::Drawing::TextRenderer::TextRenderer ( TextState ts,
const Graphics g 
)
inline

在文件 TextRenderer.h368 行定义.

YSLib::Drawing::TextRenderer::TextRenderer ( TextState ts,
const Graphics g,
const Rect mask 
)
inline

在文件 TextRenderer.h376 行定义.

成员函数说明

const TextState State TextState State const Graphics Buffer YSLib::Drawing::TextRenderer::DefGetterMem ( const ynothrow  ,
SDst  ,
Height  ,
Buffer   
) const
自从
build 308
const TextState State TextState State const Graphics Buffer Buffer YSLib::Drawing::TextRenderer::DefGetterMem ( const ynothrow  ,
const Size ,
Size  ,
Buffer   
)

清除缓冲区第 l 行起始的 n 行像素。

注解
图形接口上下文不可用或 l 越界时忽略。
n 被限制为不越界。
n 为 0 时清除之后的所有行。
YSLib::Drawing::TextRenderer::ImplS ( GTextRendererBase  ) const
const TextState State YSLib::Drawing::TextRenderer::ImplS ( GTextRendererBase  )
const TextState State TextState State YSLib::Drawing::TextRenderer::ImplS ( GTextRendererBase  ) const
void YSLib::Drawing::TextRenderer::operator() ( ucs4_t  c)

渲染单个字符。

在文件 TextRenderer.cpp112 行定义.

参考 CHRLib::c.

类成员变量说明

const Graphics& YSLib::Drawing::TextRenderer::Buffer

在文件 TextRenderer.h365 行定义.

Rect YSLib::Drawing::TextRenderer::ClipArea

在文件 TextRenderer.h366 行定义.

参考自 YSLib::UI::TextBox::DrawClippedText().

const TextState State TextState State const Graphics YSLib::Drawing::TextRenderer::Context

在文件 TextRenderer.h390 行定义.

const TextState State TextState State const Graphics Buffer Buffer SDst YSLib::Drawing::TextRenderer::n

在文件 TextRenderer.h406 行定义.

const TextState State TextState State const Graphics Buffer YSLib::Drawing::TextRenderer::SDst

在文件 TextRenderer.h395 行定义.

TextState& YSLib::Drawing::TextRenderer::State

在文件 TextRenderer.h364 行定义.

const TextState YSLib::Drawing::TextRenderer::TextState

在文件 TextRenderer.h387 行定义.

const TextState State TextState YSLib::Drawing::TextRenderer::TextState

在文件 TextRenderer.h389 行定义.

const TextState State TextState State const Graphics Buffer YSLib::Drawing::TextRenderer::Width

在文件 TextRenderer.h395 行定义.


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