Go to the documentation of this file.
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);
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 virtual size_t _getItemCount();
161 virtual void _removeItemAt(
size_t _index);
162 virtual void _setItemNameAt(
size_t _index,
const UString& _name);
163 virtual const UString& _getItemNameAt(
size_t _index);
165 virtual void _resetContainer(
bool _update);
168 virtual void initialiseOverride();
169 virtual void shutdownOverride();
171 virtual void onKeyButtonPressed(
KeyCode _key,
Char _char);
173 virtual void setPropertyOverride(
const std::string& _key,
const std::string& _value);
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);
210 #endif // MYGUI_COMBO_BOX_H_
ListBox properties. Skin childs. ListBox widget description should be here.
EditBox properties. Skin childs. EditBox widget description should be here.
void actionWidgetHide(Widget *_widget, ControllerItem *_controller)
A UTF-16 string with implicit conversion to/from std::string and std::wstring.
EventPair< EventHandle_WidgetVoid, EventHandle_ComboBoxPtrSizeT > eventComboAccept
#define MYGUI_RTTI_DERIVED(DerivedType)
ValueType * getItemDataAt(size_t _index, bool _throw=true)
Get item data from specified position.
EventPair< EventHandle_WidgetSizeT, EventHandle_ComboBoxPtrSizeT > eventComboChangePosition
ComboBox properties. Skin childs. ComboBox widget description should be here.
delegates::CMultiDelegate2< ComboBox *, size_t > EventHandle_ComboBoxPtrSizeT