 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_GUI_COMBO_BOX_H_INCLUDED__
6 #define __I_GUI_COMBO_BOX_H_INCLUDED__
31 virtual const wchar_t*
getItem(
u32 idx)
const = 0;
47 virtual void clear() = 0;
virtual s32 getSelected() const =0
Returns id of selected item. returns -1 if no item is selected.
virtual u32 getMaxSelectionRows() const =0
Get the maximimal number of rows for the selection listbox.
@ EGUIET_COMBO_BOX
A combo box (IGUIComboBox)
virtual void clear()=0
Deletes all items in the combo box.
virtual u32 addItem(const wchar_t *text, u32 data=0)=0
Adds an item and returns the index of it.
virtual s32 getIndexForItemData(u32 data) const =0
Returns index based on item data.
virtual u32 getItemCount() const =0
Returns amount of items in box.
virtual void setSelected(s32 idx)=0
Sets the selected item. Set this to -1 if no item should be selected.
signed int s32
32 bit signed variable.
virtual u32 getItemData(u32 idx) const =0
Returns item data of an item. the idx may be a value from 0 to itemCount-1.
virtual void setTextAlignment(EGUI_ALIGNMENT horizontal, EGUI_ALIGNMENT vertical)=0
Sets text justification of the text area.
virtual const wchar_t * getItem(u32 idx) const =0
Returns string of an item. the idx may be a value from 0 to itemCount-1.
virtual void removeItem(u32 idx)=0
Removes an item from the combo box.
IGUIComboBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
virtual void setMaxSelectionRows(u32 max)=0
Set the maximal number of rows for the selection listbox.
Everything in the Irrlicht Engine can be found in this namespace.
unsigned int u32
32 bit unsigned variable.
GUI Environment. Used as factory and manager of all other GUI elements.
Base class of all GUI elements.