27 #ifndef _CEGUIItemListbox_h_
28 #define _CEGUIItemListbox_h_
30 #include "./ScrolledItemListBase.h"
33 # pragma warning(push)
34 # pragma warning(disable : 4251)
74 size_t getSelectedCount(
void)
const;
103 ItemEntry* getFirstSelectedItem(
size_t start_index=0)
const;
123 ItemEntry* getNextSelectedItem(
void)
const;
146 bool isItemSelected(
size_t index)
const;
155 void setMultiSelectEnabled(
bool state);
161 void clearAllSelections(
void);
173 void selectRange(
size_t a,
size_t z);
180 void selectAllItems(
void);
204 virtual void layoutItemWidgets();
210 virtual Sizef getContentSize()
const;
217 virtual void notifyItemClicked(
ItemEntry* li);
224 virtual void notifyItemSelectState(
ItemEntry* li,
bool state);
247 ItemEntry* findSelectedItem(
size_t start_index)
const;
250 bool handle_PaneChildRemoved(
const EventArgs& e);
271 void addItemListboxProperties(
void);
276 #if defined(_MSC_VER)
277 # pragma warning(pop)
280 #endif // end of guard _CEGUIItemListbox_h_
static const String EventMultiSelectModeChanged
Definition: widgets/ItemListbox.h:65
ItemEntry * d_lastSelected
Controls whether multiple items can be selected simultaneously.
Definition: widgets/ItemListbox.h:267
static const String EventSelectionChanged
Definition: widgets/ItemListbox.h:59
bool isMultiSelectEnabled(void) const
Returns 'true' if multiple selections are allowed. 'false' if not.
Definition: widgets/ItemListbox.h:140
static const String EventNamespace
Namespace for global events.
Definition: widgets/ItemListbox.h:48
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Base class for item type widgets.
Definition: widgets/ItemEntry.h:76
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:49
virtual ~ItemListbox(void)
Destructor for the ItemListbox base class.
Definition: widgets/ItemListbox.h:195
ItemListbox window class.
Definition: widgets/ItemListbox.h:45
EventArgs based class that is used for objects passed to input event handlers concerning keyboard inp...
Definition: InputEvent.h:314
static const String WidgetTypeName
Window factory name.
Definition: widgets/ItemListbox.h:49
size_t d_nextSelectionIndex
The last item that was selected.
Definition: widgets/ItemListbox.h:268
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:251
ItemEntry * getLastSelectedItem(void) const
Returns a pointer to the last selected item.
Definition: widgets/ItemListbox.h:83
String class used within the GUI system.
Definition: String.h:62