22 #ifndef __MYGUI_COMBO_BOX_H__
23 #define __MYGUI_COMBO_BOX_H__
54 size_t getItemCount() const;
57 void insertItemAt(
size_t _index, const
UString& _name,
Any _data =
Any::Null);
63 void removeItemAt(
size_t _index);
66 void removeAllItems();
70 size_t findItemIndexWith(const
UString& _name);
77 size_t getIndexSelected() const;
80 void setIndexSelected(
size_t _index);
83 void clearIndexSelected();
90 void setItemDataAt(
size_t _index,
Any _data);
93 void clearItemDataAt(
size_t _index);
96 template <typename ValueType>
97 ValueType* getItemDataAt(
size_t _index,
bool _throw = true)
107 void setItemNameAt(
size_t _index,
const UString& _name);
110 const UString& getItemNameAt(
size_t _index);
117 void beginToItemAt(
size_t _index);
120 void beginToItemFirst();
123 void beginToItemLast();
126 void beginToItemSelected();
133 void setComboModeDrop(
bool _value);
135 bool getComboModeDrop()
const;
138 void setSmoothShow(
bool _value);
140 bool getSmoothShow()
const;
143 void setMaxListLength(
int _value);
145 int getMaxListLength()
const;
173 virtual size_t _getItemCount();
175 virtual void _removeItemAt(
size_t _index);
176 virtual void _setItemNameAt(
size_t _index,
const UString& _name);
177 virtual const UString& _getItemNameAt(
size_t _index);
179 virtual void _resetContainer(
bool _update);
182 virtual void initialiseOverride();
183 virtual void shutdownOverride();
185 virtual void onKeyButtonPressed(
KeyCode _key,
Char _char);
187 virtual void setPropertyOverride(
const std::string& _key,
const std::string& _value);
192 void notifyListSelectAccept(
ListBox* _widget,
size_t _position);
193 void notifyListMouseItemActivate(
ListBox* _widget,
size_t _position);
194 void notifyListChangePosition(
ListBox* _widget,
size_t _position);
195 void notifyMouseWheel(
Widget* _sender,
int _rel);
197 void notifyEditTextChange(
EditBox* _sender);
224 #endif // __MYGUI_COMBO_BOX_H__
EventPair< EventHandle_WidgetVoid, EventHandle_ComboBoxPtrSizeT > eventComboAccept
#define MYGUI_RTTI_DERIVED(DerivedType)
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
EventPair< EventHandle_WidgetSizeT, EventHandle_ComboBoxPtrSizeT > eventComboChangePosition
ValueType * getItemDataAt(size_t _index, bool _throw=true)
Get item data from specified position.
void actionWidgetHide(Widget *_widget)
delegates::CMultiDelegate2< ComboBox *, size_t > EventHandle_ComboBoxPtrSizeT