![]() |
CMGDK r49-rc2
|
图片按钮 更多...
#include <IconButton.H>
公有成员 | |
IconButton () | |
本类构造函数 | |
IconButton (float, float, float, float, const wchar_t *, const wchar_t *) | |
本类构造函数 | |
virtual | ~IconButton () |
本类析构函数 | |
保护成员 | |
void | DefaultDraw (GUIObject *, Button::State) |
缺省绘制函数 | |
保护属性 | |
Texture2D * | pic |
图片 |
图片按钮
图标按钮就是在文本按钮的基础上,在文字标题前加上一个小图标(使用贴图类Texture2D实现)
hgl::gui::IconButton::IconButton | ( | ) |
本类构造函数
hgl::gui::IconButton::IconButton | ( | float | l, |
float | t, | ||
float | w, | ||
float | h, | ||
const wchar_t * | name, | ||
const wchar_t * | picname | ||
) |
本类构造函数
本类构造函数
l | 按钮左边界 |
t | 按钮上边界 |
w | 按钮宽度 |
h | 按钮高度 |
name | 按钮标题名称 |
picname | 按钮图片文件名 |
hgl::gui::IconButton::~IconButton | ( | ) | [virtual] |
本类析构函数
void hgl::gui::IconButton::DefaultDraw | ( | GUIObject * | go, |
Button::State | bs | ||
) | [protected] |
缺省绘制函数
Texture2D* hgl::gui::IconButton::pic [protected] |
图片