|
YSTest
PreAlpha_b500_20140530
The YSLib Test Project
|
定制文本渲染器:使用自定义的渲染函数替代的 TextRenderer 。 更多...
#include <TextRenderer.h>


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 | |
| TextState & | State |
| const Graphics & | Buffer |
| 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 | |
| using YSLib::Drawing::CustomTextRenderer::RenderFunctionType = std::function<void(TextRenderer&, ucs4_t)> |
在文件 TextRenderer.h 第 420 行定义.
|
inline |
在文件 TextRenderer.h 第 424 行定义.
|
inline |
在文件 TextRenderer.h 第 427 行定义.
| YSLib::Drawing::CustomTextRenderer::PDefHOp | ( | void | , |
| () | , | ||
| ucs4_t | c | ||
| ) |
渲染单个字符。
| RenderFunctionType YSLib::Drawing::CustomTextRenderer::RenderFunction |
在文件 TextRenderer.h 第 422 行定义.