 |
Irrlicht 3D Engine
|
|
Go to the documentation of this file.
5 #ifndef __I_GUI_LIST_BOX_H_INCLUDED__
6 #define __I_GUI_LIST_BOX_H_INCLUDED__
78 virtual void clear() = 0;
117 virtual void setItem(
u32 index,
const wchar_t* text,
s32 icon) = 0;
virtual u32 addItem(const wchar_t *text)=0
adds an list item, returns id of item
@ EGUI_LBC_COUNT
Not used, just counts the number of available colors.
virtual void setSelected(s32 index)=0
sets the selected item. Set this to -1 if no item should be selected
@ EGUI_LBC_TEXT
Color of text.
virtual void clear()=0
clears the list, deletes all items in the listbox
virtual void setItemHeight(s32 height)=0
set global itemHeight
virtual void clearItemOverrideColor(u32 index)=0
clear all item colors at index
virtual video::SColor getItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) const =0
return the overwrite color at given item index.
signed int s32
32 bit signed variable.
virtual video::SColor getItemDefaultColor(EGUI_LISTBOX_COLOR colorType) const =0
return the default color which is used for the given colorType
virtual bool isAutoScrollEnabled() const =0
returns true if automatic scrolling is enabled, false if not.
virtual bool hasItemOverrideColor(u32 index, EGUI_LISTBOX_COLOR colorType) const =0
has the item at index its color overwritten?
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
virtual s32 getSelected() const =0
returns id of selected item. returns -1 if no item is selected.
virtual void setItem(u32 index, const wchar_t *text, s32 icon)=0
set the item at the given index
virtual void setItemOverrideColor(u32 index, video::SColor color)=0
set all item colors at given index to color
@ EGUIET_LIST_BOX
A list box (IGUIListBox)
virtual s32 insertItem(u32 index, const wchar_t *text, s32 icon)=0
Insert the item at the given index.
virtual s32 getIcon(u32 index) const =0
Returns the icon of an item.
@ EGUI_LBC_ICON_HIGHLIGHT
Color of selected icon.
virtual s32 getItemAt(s32 xpos, s32 ypos) const =0
get the the id of the item at the given absolute coordinates
virtual void swapItems(u32 index1, u32 index2)=0
Swap the items at the given indices.
EGUI_LISTBOX_COLOR
Enumeration for listbox colors.
virtual void setSpriteBank(IGUISpriteBank *bank)=0
Sets the sprite bank which should be used to draw list icons.
Everything in the Irrlicht Engine can be found in this namespace.
virtual void draw()
Draws the element and its children.
unsigned int u32
32 bit unsigned variable.
virtual void removeItem(u32 index)=0
Removes an item from the list.
@ EGUI_LBC_ICON
Color of icon.
virtual void setAutoScrollEnabled(bool scroll)=0
set whether the listbox should scroll to newly selected items
virtual u32 getItemCount() const =0
returns amount of list items
GUI Environment. Used as factory and manager of all other GUI elements.
Default list box GUI element.
Class representing a 32 bit ARGB color.
virtual const wchar_t * getListItem(u32 id) const =0
returns string of a list item. the may id be a value from 0 to itemCount-1
IGUIListBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Base class of all GUI elements.
@ EGUI_LBC_TEXT_HIGHLIGHT
Color of selected text.