YSTest
PreAlpha_b400_20130424
The YSLib Test Project
|
文本渲染。 更多...
#include "YSLib/Service/TextRenderer.h"
#include "YSLib/Service/yblit.h"
#include "YSLib/Service/TextLayout.h"
函数 | |
void | DrawClippedText (const Graphics &g, const Rect &mask, TextState &ts, const String &str, bool line_wrap) |
void | DrawClippedText (const Graphics &g, const Rect &mask, const Rect &bounds, const String &str, const Padding &m, Color c, bool line_wrap, const Font &fnt) |
void | DrawText (const Graphics &g, TextState &ts, const String &str, bool line_wrap) |
void | DrawText (const Graphics &g, const Rect &bounds, const String &str, const Padding &m, Color c, bool line_wrap, const Font &fnt) |
void | DrawText (TextRegion &tr, const Graphics &g, const Point &pt, const Size &s, const String &str, bool line_wrap) |
文本渲染。
在文件 TextRenderer.cpp 中定义.
void DrawClippedText | ( | const Graphics & | g, |
const Rect & | mask, | ||
TextState & | ts, | ||
const String & | str, | ||
bool | line_wrap | ||
) |
在文件 TextRenderer.cpp 第 189 行定义.
参考 YSLib::Drawing::PutLine() , 以及 YSLib::Drawing::PutString().
void DrawClippedText | ( | const Graphics & | g, |
const Rect & | mask, | ||
const Rect & | bounds, | ||
const String & | str, | ||
const Padding & | m, | ||
Color | c, | ||
bool | line_wrap, | ||
const Font & | fnt | ||
) |
在文件 TextRenderer.cpp 第 200 行定义.
参考 YSLib::Drawing::DrawClippedText() , 以及 YSLib::Drawing::FetchMargin().
void DrawText | ( | const Graphics & | g, |
TextState & | ts, | ||
const String & | str, | ||
bool | line_wrap | ||
) |
void DrawText | ( | const Graphics & | g, |
const Rect & | bounds, | ||
const String & | str, | ||
const Padding & | m, | ||
Color | c, | ||
bool | line_wrap, | ||
const Font & | fnt | ||
) |
void DrawText | ( | TextRegion & | tr, |
const Graphics & | g, | ||
const Point & | pt, | ||
const Size & | s, | ||
const String & | str, | ||
bool | line_wrap | ||
) |
在文件 TextRenderer.cpp 第 225 行定义.
参考 YSLib::Drawing::BlitTo(),YSLib::Drawing::PutLine() , 以及 YSLib::Drawing::PutString().