文本环境设置类, 更多...
#include <TextSet.h>
Public 成员函数 | |
| TextSet (const Color &color, const Font &font=Font(L"宋体")) | |
| 构造函数 | |
| TextSet (const TextSet &other)=default | |
| TextSet (TextSet &&other)=default | |
| Font & | font () |
| 字体设置 | |
| const Font & | font () const |
| Color | getColor () const |
| 获取颜色 | |
| bool | isTransparent () const |
| 获取文本背景模式 | |
| TextSet & | operator= (const TextSet &other)=default |
| TextSet & | operator= (TextSet &&other)=default |
| void | setColor (const Color &color) |
| 设置颜色 | |
| void | setTransparent (bool transparent) |
| 设置文本背景模式 | |
友元 | |
| class | Graphics |
文本环境设置类,
用于设置字体、颜色、透明度等属性
构造函数
| color | 文本颜色 |
| font | 字体 |
|
default |
|
default |
| Font & GFt::TextSet::font | ( | ) |
字体设置
| const Font & GFt::TextSet::font | ( | ) | const |
| Color GFt::TextSet::getColor | ( | ) | const |
获取颜色
| bool GFt::TextSet::isTransparent | ( | ) | const |
获取文本背景模式
| void GFt::TextSet::setColor | ( | const Color & | color | ) |
设置颜色
| color | 颜色 |
| void GFt::TextSet::setTransparent | ( | bool | transparent | ) |
设置文本背景模式
| transparent | 是否透明 |
|
friend |