YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
文本布局计算。 更多...
#include "TextRenderer.h"
命名空间 | |
namespace | YSLib |
namespace | YSLib::Drawing |
图形处理。 | |
函数 | |
YF_API SDst | YSLib::Drawing::FetchResizedBottomMargin (const TextState &, SDst) |
取指定文本状态和文本区域高调整的底边距。 | |
YF_API u16 | YSLib::Drawing::FetchResizedLineN (const TextState &ts, SDst) |
取指定文本状态和文本区域高所能显示的最大文本行数。 | |
YF_API SPos | YSLib::Drawing::FetchLastLineBasePosition (const TextState &, SDst) |
取指定文本状态在指定高的区域中表示的最底行的基线位置(纵坐标)。 | |
SDst | YSLib::Drawing::FetchResizedBottomMargin (const TextRegion &tr) |
取按字体高度和行距调整文本区域的底边距。 | |
SDst | YSLib::Drawing::AdjustBottomMarginOf (TextRegion &tr) |
按字体高度和行距调整文本区域的底边距。 | |
YF_API SDst | YSLib::Drawing::FetchCharWidth (const Font &, ucs4_t) |
取指定的字符使用指定字体的显示宽度。 | |
template<typename _tIn > | |
SDst | YSLib::Drawing::FetchStringWidth (const Font &fnt, _tIn s) |
取迭代器指定的字符串在字体指定、无边界限制时的显示宽度。 | |
template<typename _tIn > | |
SDst | YSLib::Drawing::FetchStringWidth (const Font &fnt, _tIn s, _tIn g, ucs4_t c={}) |
取迭代器指定的单行字符串在字体指定、无边界限制时的显示宽度。 | |
SDst | YSLib::Drawing::FetchStringWidth (const Font &fnt, const String &str) |
取单行字符串在字体指定、无边界限制时的显示宽度。 | |
template<typename _tIn > | |
SDst | YSLib::Drawing::FetchStringWidth (TextState &ts, SDst h, _tIn s) |
取迭代器指定的单行字符串在指定文本状态和高度限制时的显示宽度。 | |
template<typename _tIn > | |
SDst | YSLib::Drawing::FetchStringWidth (TextState &ts, SDst h, _tIn s, _tIn g, ucs4_t c={}) |
取迭代器指定的单行字符串在指定文本状态和高度限制时的显示宽度。 | |
SDst | YSLib::Drawing::FetchStringWidth (TextState &ts, SDst h, const String &str) |
取单行字符串在指定文本状态和高度限制时的显示宽度。 | |
template<typename _tIn > | |
SDst | YSLib::Drawing::FetchMaxTextWidth (const Font &font, _tIn first, _tIn last) |
取指定字体显示的迭代器范围中的文本的最大宽度。 | |
文本布局计算。
在文件 TextLayout.h 中定义.