![]() |
CMGDK r49-rc2
|
输入编辑框 更多...
#include <EditBox.H>
公有成员 | |
DefEvent (void, OnDraw,(GUIObject *)) | |
绘制事件 | |
DefEvent (void, OnChange,(GUIObject *)) | |
改变事件 | |
DefEvent (bool, OnKeyDown,(GUIObject *, uint32)) | |
按钮按下事件 | |
DefEvent (bool, OnChar,(GUIObject *, wchar_t)) | |
字符输入事件 | |
DefEvent (void, OnEmpty,(GUIObject *, bool)) | |
当输入框被置空/不为空时所产生的事件 | |
EditBox () | |
本类构造函数 | |
EditBox (float, float, float, const wchar_t *=NULL) | |
本类构造函数 | |
virtual | ~EditBox () |
本类析构函数 | |
virtual void | Draw () |
对象绘制函数 | |
公有属性 | |
ThemeColor | Color |
颜色设置 | |
Color4f | CursorColor |
光标颜色 | |
BlendMode | CursorBlend |
光标混合方式 | |
int | CursorWidth |
光标宽度(象素数,0表示整个字符宽) | |
double | CursorShowTime |
光标显示时间(默认0.5,单位为秒) | |
bool | Border |
是否画边界 | |
PropertyString | Text |
当前文本 | |
Property< int > | Cursor |
光标位置 | |
Property< bool > | Password |
是否是在密码输入状态 | |
Property< wchar_t > | PasswordChar |
密码字符 | |
MenuItem * | PopupMenu |
弹出式菜单 |
输入编辑框
输入编辑框用于让用户对单行文本进行输入和编辑
hgl::gui::EditBox::EditBox | ( | ) |
本类构造函数
hgl::gui::EditBox::EditBox | ( | float | l, |
float | t, | ||
float | w, | ||
const wchar_t * | str = NULL |
||
) |
本类构造函数
本类构造函数
l | 控件左边界坐标 |
t | 控件上边界坐标 |
w | 控件宽度 |
str | 编辑文本 |
hgl::gui::EditBox::~EditBox | ( | ) | [virtual] |
本类析构函数
hgl::gui::EditBox::DefEvent | ( | void | , |
OnDraw | , | ||
(GUIObject *) | |||
) |
绘制事件
hgl::gui::EditBox::DefEvent | ( | void | , |
OnChange | , | ||
(GUIObject *) | |||
) |
改变事件
hgl::gui::EditBox::DefEvent | ( | void | , |
OnEmpty | , | ||
(GUIObject *, bool) | |||
) |
当输入框被置空/不为空时所产生的事件
void hgl::gui::EditBox::Draw | ( | ) | [virtual] |
是否画边界
光标显示时间(默认0.5,单位为秒)
光标宽度(象素数,0表示整个字符宽)
是否是在密码输入状态
Property<wchar_t> hgl::gui::EditBox::PasswordChar |
密码字符