7#ifndef MYGUI_COMBO_BOX_H_
8#define MYGUI_COMBO_BOX_H_
42 size_t getItemCount()
const;
51 void removeItemAt(
size_t _index);
54 void removeAllItems();
58 size_t findItemIndexWith(
const UString& _name);
65 size_t getIndexSelected()
const;
68 void setIndexSelected(
size_t _index);
71 void clearIndexSelected();
78 void setItemDataAt(
size_t _index,
Any _data);
81 void clearItemDataAt(
size_t _index);
84 template <
typename ValueType>
87 return mList->getItemDataAt<ValueType>(_index, _throw);
95 void setItemNameAt(
size_t _index,
const UString& _name);
98 const UString& getItemNameAt(
size_t _index)
const;
105 void beginToItemAt(
size_t _index);
108 void beginToItemFirst();
111 void beginToItemLast();
114 void beginToItemSelected();
121 void setComboModeDrop(
bool _value);
123 bool getComboModeDrop()
const;
126 void setSmoothShow(
bool _value);
128 bool getSmoothShow()
const;
131 void setMaxListLength(
int _value);
133 int getMaxListLength()
const;
159 size_t _getItemCount()
const override;
161 void _removeItemAt(
size_t _index)
override;
162 void _setItemNameAt(
size_t _index,
const UString& _name)
override;
163 const UString& _getItemNameAt(
size_t _index)
const override;
165 void _resetContainer(
bool _update)
override;
168 void initialiseOverride()
override;
169 void shutdownOverride()
override;
171 void onKeyButtonPressed(
KeyCode _key,
Char _char)
override;
173 void setPropertyOverride(
const std::string& _key,
const std::string& _value)
override;
178 void notifyListSelectAccept(
ListBox* _widget,
size_t _position);
179 void notifyListMouseItemActivate(
ListBox* _widget,
size_t _position);
180 void notifyListChangePosition(
ListBox* _widget,
size_t _position);
181 void notifyMouseWheel(
Widget* _sender,
int _rel);
183 void notifyEditTextChange(
EditBox* _sender);
#define MYGUI_RTTI_DERIVED(DerivedType)
widget description should be here.
EventPair< EventHandle_WidgetVoid, EventHandle_ComboBoxPtrSizeT > eventComboAccept
EventPair< EventHandle_WidgetSizeT, EventHandle_ComboBoxPtrSizeT > eventComboChangePosition
ValueType * getItemDataAt(size_t _index, bool _throw=true)
Get item data from specified position.
widget description should be here.
widget description should be here.
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
void actionWidgetHide(Widget *_widget, ControllerItem *_controller)
delegates::CMultiDelegate2< ComboBox *, size_t > EventHandle_ComboBoxPtrSizeT