|
| CGUISTKListBox (IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle, bool clip=true, bool drawBack=false, bool moveOverSelect=false) |
| constructor
|
|
virtual | ~CGUISTKListBox () |
| destructor
|
|
virtual u32 | getItemCount () const |
| returns amount of list items
|
|
virtual const wchar_t * | getCellText (u32 row_num, u32 col_num) const |
|
virtual ListItem | getItem (u32 id) const |
|
virtual void | clear () |
| clears the list
|
|
virtual s32 | getSelected () const |
| returns id of selected item. returns -1 if no item is selected.
|
|
virtual void | setSelected (s32 id) |
| sets the selected item. Set this to -1 if no item should be selected
|
|
virtual s32 | getRowByCellText (const wchar_t *text) |
|
virtual void | setSelectedByCellText (const wchar_t *text) |
| sets the selected item. Set this to -1 if no item should be selected
|
|
virtual s32 | getRowByInternalName (const std::string &text) const |
|
virtual bool | OnEvent (const SEvent &event) |
| called if an event happened.
|
|
virtual void | draw () |
| draws the element and its children
|
|
virtual u32 | addItem (const ListItem &item) |
| adds an list item with an icon
|
|
virtual s32 | getIcon (u32 row_num, u32 col_num) const |
| Returns the icon of an item.
|
|
virtual void | removeItem (u32 id) |
| removes an item from the list
|
|
virtual s32 | getItemAt (s32 xpos, s32 ypos) const |
| get the the id of the item at the given absolute coordinates
|
|
virtual void | setSpriteBank (IGUISpriteBank *bank) |
| Sets the sprite bank which should be used to draw list icons.
|
|
virtual void | setAutoScrollEnabled (bool scroll) |
| set whether the listbox should scroll to newly selected items
|
|
virtual bool | isAutoScrollEnabled () const |
| returns true if automatic scrolling is enabled, false if not.
|
|
virtual void | updateAbsolutePosition () |
| Update the position and size of the listbox, and update the scrollbar.
|
|
virtual void | setItemOverrideColor (u32 index, video::SColor color) |
| set all item colors at given index to color
|
|
virtual void | setItemOverrideColor (u32 index, EGUI_LISTBOX_COLOR colorType, video::SColor color) |
| set all item colors of specified type at given index to color
|
|
virtual void | clearItemOverrideColor (u32 index) |
| clear all item colors at index
|
|
virtual void | clearItemOverrideColor (u32 index, EGUI_LISTBOX_COLOR colorType) |
| clear item color at index for given colortype
|
|
virtual bool | hasItemOverrideColor (u32 index, EGUI_LISTBOX_COLOR colorType) const |
| has the item at index its color overwritten?
|
|
virtual video::SColor | getItemOverrideColor (u32 index, EGUI_LISTBOX_COLOR colorType) const |
| return the overwrite color at given item index.
|
|
virtual video::SColor | getItemDefaultColor (EGUI_LISTBOX_COLOR colorType) const |
| return the default color which is used for the given colorType
|
|
virtual void | setCell (u32 row_num, u32 col_num, const wchar_t *text, s32 icon) |
| set the item at the given index
|
|
virtual void | swapItems (u32 index1, u32 index2) |
| Swap the items at the given indices.
|
|
virtual void | setItemHeight (s32 height) |
| set global itemHeight
|
|
virtual void | setDrawBackground (bool draw) |
| Sets whether to draw the background.
|
|
void | setAlternatingDarkness (bool val) |
|
gui::IGUIScrollBar * | getScrollBar () const |
|
void | setDisactivated (bool val) |
|