CMGDK r49-rc2
|
#include <ButtonGroup.H>
组合类型 | |
struct | ButtonItem |
按钮项 更多... | |
公有成员 | |
virtual bool | Proc_MouseLeftDown (int x, int y, unsigned __int32 key) |
DefEvent (float, OnMeasureItem,(GUIObject *, ButtonGroup::ButtonItem *)) | |
取得数据项尺寸 | |
DefEvent (float, OnMeasure,(GUIObject *)) | |
取得数据项尺寸 | |
DefEvent (void, OnDraw,(GUIObject *)) | |
绘制事件 | |
DefEvent (void, OnChange,(GUIObject *, int, ButtonGroup::ButtonItem *, bool)) | |
变动事件 | |
ButtonGroup () | |
ButtonGroup (float, float, float, float) | |
virtual | ~ButtonGroup () |
virtual void | Draw () |
对象绘制函数 | |
virtual ButtonGroup::ButtonItem * | Add (wchar_t *) |
增加一个选项 | |
公有属性 | |
ThemeColor | Color |
颜色 | |
bool | RoundedBroder |
圆角矩形边框 | |
ObjectList< ButtonItem > | Items |
群组按钮项 | |
bool | MultiSelect |
多选 | |
Property< int > | ItemIndex |
选中项编号 | |
保护成员 | |
virtual void | InitPrivate () |
float | DefaultMeasureItem (GUIObject *, ButtonGroup::ButtonItem *) |
float | DefaultMeasure (GUIObject *) |
void | DefaultDraw (GUIObject *) |
int | GetSelectItem () |
void | SetSelectItem (int) |
保护属性 | |
int | SelectItem |
群组按钮是一种将多个按钮紧密排列的控件,常用于各种多选一状态,诸如TAB页上方的页选择按钮等。
不过本控件同时支持多个选中和单个选中,需要开发者来设定。
hgl::gui::ButtonGroup::ButtonGroup | ( | ) |
hgl::gui::ButtonGroup::ButtonGroup | ( | float | l, |
float | t, | ||
float | w, | ||
float | h | ||
) |
hgl::gui::ButtonGroup::~ButtonGroup | ( | ) | [virtual] |
ButtonGroup::ButtonItem * hgl::gui::ButtonGroup::Add | ( | wchar_t * | name | ) | [virtual] |
增加一个选项
void hgl::gui::ButtonGroup::DefaultDraw | ( | GUIObject * | go | ) | [protected] |
float hgl::gui::ButtonGroup::DefaultMeasure | ( | GUIObject * | go | ) | [protected] |
float hgl::gui::ButtonGroup::DefaultMeasureItem | ( | GUIObject * | , |
ButtonGroup::ButtonItem * | item | ||
) | [protected] |
hgl::gui::ButtonGroup::DefEvent | ( | float | , |
OnMeasureItem | , | ||
(GUIObject *, ButtonGroup::ButtonItem *) | |||
) |
取得数据项尺寸
hgl::gui::ButtonGroup::DefEvent | ( | float | , |
OnMeasure | , | ||
(GUIObject *) | |||
) |
取得数据项尺寸
hgl::gui::ButtonGroup::DefEvent | ( | void | , |
OnDraw | , | ||
(GUIObject *) | |||
) |
绘制事件
hgl::gui::ButtonGroup::DefEvent | ( | void | , |
OnChange | , | ||
(GUIObject *, int, ButtonGroup::ButtonItem *, bool) | |||
) |
变动事件
void hgl::gui::ButtonGroup::Draw | ( | ) | [virtual] |
int hgl::gui::ButtonGroup::GetSelectItem | ( | ) | [inline, protected] |
void hgl::gui::ButtonGroup::InitPrivate | ( | ) | [protected, virtual] |
void hgl::gui::ButtonGroup::SetSelectItem | ( | int | index | ) | [protected] |
圆角矩形边框
int hgl::gui::ButtonGroup::SelectItem [protected] |