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

文本布局计算。 更多...

TextLayout.h 的引用(Include)关系图:

浏览源代码.

命名空间

 YSLib
 
 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 _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
SDst YSLib::Drawing::FetchStringWidth (const Font &fnt, _tIter s)
 取迭代器指定的单行字符串在字体指定、无边界限制时的显示宽度。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
SDst YSLib::Drawing::FetchStringWidth (const Font &fnt, _tIter s, size_t n, ucs4_t c={})
 取迭代器指定的单行字符串在字体指定、无边界限制时的显示宽度。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
SDst YSLib::Drawing::FetchStringWidth (const Font &fnt, _tIter s, _tIter g, ucs4_t c={})
 取迭代器指定的单行字符串在字体指定、无边界限制时的显示宽度。 更多...
 
template<class _tString , yimpl(typename=ystdex::enable_for_string_class_t< _tString >) >
SDst YSLib::Drawing::FetchStringWidth (const Font &fnt, const _tString &str)
 取单行字符串在字体指定、无边界限制时的显示宽度。 更多...
 
template<class _tString , yimpl(typename=ystdex::enable_for_string_class_t< _tString >) >
SDst YSLib::Drawing::FetchStringWidth (const Font &fnt, const _tString &str, size_t n)
 取单行字符串前不超过 n 个字符在字体指定、无边界限制时的显示宽度。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
SDst YSLib::Drawing::FetchStringWidth (TextState &ts, SDst h, _tIter s)
 取迭代器指定的单行字符串在指定文本状态和高度限制时的显示宽度。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
SDst YSLib::Drawing::FetchStringWidth (TextState &ts, SDst h, _tIter s, _tIter g, ucs4_t c={})
 取迭代器指定的单行字符串在指定文本状态和高度限制时的显示宽度。 更多...
 
template<class _tString , yimpl(typename=ystdex::enable_for_string_class_t< _tString >) >
SDst YSLib::Drawing::FetchStringWidth (TextState &ts, SDst h, const _tString &str)
 取单行字符串在指定文本状态和高度限制时的显示宽度。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
SDst YSLib::Drawing::FetchMaxTextWidth (const Font &font, _tIter first, _tIter last)
 取指定字体显示的迭代器范围中的文本的最大宽度。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
pair< size_t, SDst > YSLib::Drawing::FetchStringOffsets (size_t max_width, const Font &fnt, _tIter s)
 取迭代器指定的单行字符串在指定字体和宽度时的最多能显示的字符数和宽。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
pair< size_t, SDst > YSLib::Drawing::FetchStringOffsets (size_t max_width, const Font &fnt, _tIter s, size_t n, ucs4_t c={})
 取迭代器指定的单行字符串在指定字体和宽度时的最多能显示的字符数和宽。 更多...
 
template<typename _tIter , yimpl(typename=ystdex::enable_for_iterator_t< _tIter >) >
pair< size_t, SDst > YSLib::Drawing::FetchStringOffsets (size_t max_width, const Font &fnt, _tIter s, _tIter g, ucs4_t c={})
 取迭代器指定的单行字符串在指定字体和宽度时的最多能显示的字符数和宽。 更多...
 
template<class _tString , yimpl(typename=ystdex::enable_for_string_class_t< _tString >) >
pair< size_t, SDst > YSLib::Drawing::FetchStringOffsets (size_t max_width, const Font &fnt, const _tString &str)
 取单行字符串在指定字体和宽度时的最多能显示的字符数和宽。 更多...
 
template<class _tString , yimpl(typename=ystdex::enable_for_string_class_t< _tString >) >
pair< size_t, SDst > YSLib::Drawing::FetchStringOffsets (size_t max_width, const Font &fnt, const _tString &str, size_t n)
 取单行字符串前不超过 n 个字符在指定字体和宽度时的 最多能显示的字符数和宽。 更多...
 

详细描述

文本布局计算。

版本
r2790
作者
FrankHB frank.nosp@m.hb19.nosp@m.89@gm.nosp@m.ail..nosp@m.com
自从
build 275
创建时间:
2009-11-13 00:06:05 +0800
修改时间:
2014-05-23 09:22 +0800
文本编码:
UTF-8
模块名称:
YSLib::Service::TextLayout

在文件 TextLayout.h 中定义.