YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
文本布局计算。 更多...
函数 | |
SDst | FetchResizedBottomMargin (const TextState &ts, SDst h) |
u16 | FetchResizedLineN (const TextState &ts, SDst h) |
SPos | FetchLastLineBasePosition (const TextState &ts, SDst h) |
SDst | FetchCharWidth (const Font &font, ucs4_t c) |
文本布局计算。
在文件 TextLayout.cpp 中定义.
SDst FetchCharWidth | ( | const Font & | font, |
ucs4_t | c | ||
) |
SPos FetchLastLineBasePosition | ( | const TextState & | ts, |
SDst | h | ||
) |
在文件 TextLayout.cpp 第 59 行定义.
参考 FetchResizedLineN() , 以及 YSLib::Drawing::GetTextLineHeightExOf().
参考自 YSLib::Drawing::PutString().
SDst FetchResizedBottomMargin | ( | const TextState & | ts, |
SDst | h | ||
) |
在文件 TextLayout.cpp 第 41 行定义.
参考 YSLib::Drawing::GetTextLineHeightExOf(),YSLib::Drawing::GetVerticalOf() , 以及 YAssert.
参考自 YSLib::Drawing::AdjustBottomMarginOf() , 以及 YSLib::Drawing::FetchResizedBottomMargin().
u16 FetchResizedLineN | ( | const TextState & | ts, |
SDst | h | ||
) |
在文件 TextLayout.cpp 第 50 行定义.
参考 YSLib::Drawing::GetTextLineHeightExOf(),YSLib::Drawing::GetVerticalOf() , 以及 YAssert.
参考自 FetchLastLineBasePosition().