字体、字号等信息。 更多...
#include <gFont.h>
Public 类型 | |
| enum | Weight { Light = 25, Normal = 50, DemiBold = 63, Bold = 75, Black = 87 } |
| enum | PointSize { PointSize_24 =24, PointSize_28 =28, PointSize_32 =32, PointSize_36 =36 } |
Public 成员函数 | |
| GFont () | |
| GFont (const GFont &src) | |
| GFont & | operator= (const GFont &r) |
| virtual | ~GFont () |
| GFont (const GString &family, PointSize pointSize=PointSize_24, Weight weight=Normal, bool italic=false) | |
| 使用指定的信息构造一个字体对象 更多... | |
| const GString & | family () const |
| 获取字体名称 更多... | |
| PointSize | pointSize () const |
| 获取字体大小 更多... | |
| Weight | weight () const |
| 获取weight 更多... | |
| bool | italic () const |
| 是否是斜体 更多... | |
字体、字号等信息。
| enum GFont::PointSize |
| enum GFont::Weight |
| GFont::GFont | ( | ) |
| GFont::GFont | ( | const GFont & | src | ) |
|
virtual |
| GFont::GFont | ( | const GString & | family, |
| PointSize | pointSize = PointSize_24, |
||
| Weight | weight = Normal, |
||
| bool | italic = false |
||
| ) |
使用指定的信息构造一个字体对象
| family | 字体名称 |
| pointSize | 字号 |
| weight | 加粗 |
| italic | 斜体 |
| bool GFont::italic | ( | ) | const |
是否是斜体
| PointSize GFont::pointSize | ( | ) | const |
获取字体大小
| Weight GFont::weight | ( | ) | const |
获取weight
1.8.6