文字类. 更多...
#include <widgets.h>
Public 成员函数 | |
| int | GetWidth () |
| 获取宽度 | |
| int | GetHeight () |
| 获取高度 | |
| void | SetCharacters (std::string text, int size=3, LPCTSTR type=LPCTSTR("楷体")) |
| 设置文本样式. | |
| void | PrintCharacters (Vector2D pos, CharactersPattern pattern=CharactersPattern::Middle) |
| 打印文本. | |
| void | debugline () |
| 画文本的边框 | |
Private 属性 | |
| Vector2D | pos = Vector2D(0, 0) |
| 位置 | |
| int | row = 1 |
| 行数 | |
| int | colume = 0 |
| 最大的列数 | |
| std::string | texts = "" |
| 文本内容 | |
| int | size = 3 |
| 虚拟大小 | |
| LPCTSTR | type = LPCTSTR("楷体") |
| 字体样式 | |
静态 Private 属性 | |
| static std::unordered_map< std::string, COLORREF > | TextColorMap |
| 颜色映射 | |
文字类.
| void Characters::debugline | ( | ) |
画文本的边框
|
inline |
获取高度
|
inline |
获取宽度
| void Characters::PrintCharacters | ( | Vector2D | pos, |
| CharactersPattern | pattern = CharactersPattern::Middle ) |
打印文本.
| [in] | pos | 位置 |
| [in] | pattern | 文字对齐格式 |
| void Characters::SetCharacters | ( | std::string | text, |
| int | size = 3, | ||
| LPCTSTR | type = LPCTSTR("楷体") ) |
设置文本样式.
| [in] | text | 要输出的文本 |
| [in] | size | 虚拟大小 |
| [in] | type | 字体样式 |
|
private |
最大的列数
|
private |
行数
|
private |
虚拟大小
|
staticprivate |
颜色映射
|
private |
文本内容
|
private |
字体样式