![]() |
CMGDK r49-rc2
|
GUI对象 更多...
#include <GuiObject.H>
公有成员 | |
DefEvent (void, OnEnter,(GUIObject *)) | |
鼠标进入事件 | |
DefEvent (void, OnLeave,(GUIObject *)) | |
鼠标离开事件 | |
DefEvent (bool, OnHint,(GUIObject *)) | |
产生提示信息 | |
GUIObject () | |
本类构造函数 | |
GUIObject (float, float, float, float) | |
本类构造函数 | |
virtual | ~GUIObject () |
virtual void | SetMenuCoord (float, float) |
本类析构函数 | |
virtual void | DrawObject () |
对象绘制 | |
virtual void | SetScissor (int *) |
公有属性 | |
TileFont * | DrawFont |
绘制用字体 | |
bool | Cutout |
是否做范围裁剪 | |
Property< VAlign > | Align |
控件对齐方式 | |
Property< float > | Left |
控件左边坐标 | |
Property< float > | Top |
控件上边坐标 | |
Property< float > | Width |
控件宽度 | |
Property< float > | Height |
控件高度 | |
Property< float > | Right |
控件右边界 | |
Property< float > | Bottom |
控件底边界 | |
Property< float > | CenterX |
控件中心X | |
Property< float > | CenterY |
控件中心Y | |
Property< float > | MenuX |
画面坐标X | |
Property< float > | MenuY |
画面坐标Y | |
Property< bool > | MouseFocus |
鼠标是否在上面 | |
bool | AutoActive |
自动切换到活动状态 | |
void * | CustomizeData |
GUI对象
GUI对象是所有GUI控件的基类,它主要是使用了相对坐标设计,并且支持对齐属性,以及一些通用自动事件
hgl::GUIObject::GUIObject | ( | ) |
本类构造函数
hgl::GUIObject::GUIObject | ( | float | l, |
float | t, | ||
float | w, | ||
float | h | ||
) |
本类构造函数
virtual hgl::GUIObject::~GUIObject | ( | ) | [inline, virtual] |
hgl::GUIObject::DefEvent | ( | void | , |
OnEnter | , | ||
(GUIObject *) | |||
) |
鼠标进入事件
hgl::GUIObject::DefEvent | ( | void | , |
OnLeave | , | ||
(GUIObject *) | |||
) |
鼠标离开事件
hgl::GUIObject::DefEvent | ( | bool | , |
OnHint | , | ||
(GUIObject *) | |||
) |
产生提示信息
void hgl::GUIObject::DrawObject | ( | ) | [virtual] |
void hgl::GUIObject::SetMenuCoord | ( | float | ox, |
float | oy | ||
) | [virtual] |
本类析构函数
void hgl::GUIObject::SetScissor | ( | int * | sci | ) | [virtual] |
控件对齐方式
自动切换到活动状态
Property<float> hgl::GUIObject::Bottom |
控件底边界
Property<float> hgl::GUIObject::CenterX |
控件中心X
Property<float> hgl::GUIObject::CenterY |
控件中心Y
是否做范围裁剪
绘制用字体
Property<float> hgl::GUIObject::Height |
控件高度
Property<float> hgl::GUIObject::Left |
控件左边坐标
Property<float> hgl::GUIObject::MenuX |
画面坐标X
Property<float> hgl::GUIObject::MenuY |
画面坐标Y
鼠标是否在上面
Property<float> hgl::GUIObject::Right |
控件右边界
Property<float> hgl::GUIObject::Top |
控件上边坐标
Property<float> hgl::GUIObject::Width |
控件宽度