![]() |
CMGDK r49-rc2
|
字体数据结构 更多...
#include <Font.H>
公有成员 | |
DefEvent (void, OnChange,(Font *)) | |
字体改变事件 | |
Font () | |
Font (const Font &) | |
Font (const WideString &, int, int, bool=false, bool=false) | |
void | Set (const WideString &, int, int, bool=false, bool=false) |
设置字体 | |
bool | operator== (const Font &) |
bool | operator!= (const Font &) |
void | operator= (const Font &) |
静态公有成员 | |
static void | SetDefaultFont (const WideString &, int, int, bool, bool) |
设置缺省字体 | |
static void | SetDefaultFont (const Font &) |
设置缺省字体 | |
static void | ClearDefaultFont () |
清除缺省字体 | |
公有属性 | |
PropertyString | Name |
字体名称 | |
Property< int > | Width |
平均字体宽度 | |
Property< int > | Height |
字体高度 | |
Property< bool > | Bold |
是否粗体 | |
Property< bool > | Italic |
是否斜体 |
字体数据结构
字体数据结构
用于记录字体名称,粗体,斜体,下划线等等信息
hgl::Font::Font | ( | ) |
hgl::Font::Font | ( | const Font & | fnt | ) |
字体数据类构造函数,从一个现有的字体结构复制
fnt | 现有的字体数据结构 |
hgl::Font::Font | ( | const WideString & | n, |
int | w, | ||
int | h, | ||
bool | b = false , |
||
bool | i = false |
||
) |
字体数据类构造函数
n | 字体名称 |
w | 字体宽度,一般设为高度的一半,或是0 |
h | 字体高度 |
b | 是否使用粗体 |
i | 是否使用斜体 |
void hgl::Font::ClearDefaultFont | ( | ) | [static] |
清除缺省字体
hgl::Font::DefEvent | ( | void | , |
OnChange | , | ||
(Font *) | |||
) |
字体改变事件
bool hgl::Font::operator!= | ( | const Font & | fnt | ) |
void hgl::Font::operator= | ( | const Font & | src | ) |
bool hgl::Font::operator== | ( | const Font & | fnt | ) |
void hgl::Font::Set | ( | const WideString & | n, |
int | w, | ||
int | h, | ||
bool | b = false , |
||
bool | i = false |
||
) |
设置字体
设置字体数据
n | 字体名称 |
w | 字体宽度,一般设为高度的一半,或是0 |
h | 字体高度 |
b | 是否使用粗体 |
i | 是否使用斜体 |
void hgl::Font::SetDefaultFont | ( | const Font & | fnt | ) | [static] |
设置缺省字体
void hgl::Font::SetDefaultFont | ( | const WideString & | n, |
int | w, | ||
int | h, | ||
bool | b, | ||
bool | i | ||
) | [static] |
设置缺省字体
设置缺省字体数据
n | 字体名称 |
w | 字体宽度,一般设为高度的一半,或是0 |
h | 字体高度 |
b | 是否使用粗体 |
i | 是否使用斜体 |
Property<bool> hgl::Font::Bold |
是否粗体
字体高度
Property<bool> hgl::Font::Italic |
是否斜体
平均字体宽度