28 #ifndef _CEGUIItemListbox_h_
29 #define _CEGUIItemListbox_h_
31 #include "CEGUIScrolledItemListBase.h"
32 #include "CEGUIItemListboxProperties.h"
35 # pragma warning(push)
36 # pragma warning(disable : 4251)
76 size_t getSelectedCount(
void)
const;
105 ItemEntry* getFirstSelectedItem(
size_t start_index=0)
const;
125 ItemEntry* getNextSelectedItem(
void)
const;
148 bool isItemSelected(
size_t index)
const;
154 virtual void initialiseComponents(
void);
160 void setMultiSelectEnabled(
bool state);
166 void clearAllSelections(
void);
178 void selectRange(
size_t a,
size_t z);
185 void selectAllItems(
void);
209 virtual void layoutItemWidgets();
215 virtual Size getContentSize()
const;
230 if (class_name==
"ItemListbox")
242 virtual void notifyItemClicked(
ItemEntry* li);
249 virtual void notifyItemSelectState(
ItemEntry* li,
bool state);
272 ItemEntry* findSelectedItem(
size_t start_index)
const;
298 void addItemListboxProperties(
void);
299 void addItemListboxEvents(
void);
301 bool handle_PaneChildRemoved(
const EventArgs& e);
306 #if defined(_MSC_VER)
307 # pragma warning(pop)
310 #endif // end of guard _CEGUIItemListbox_h_
static const String EventMultiSelectModeChanged
Definition: CEGUIItemListbox.h:67
ItemEntry * d_lastSelected
Controls whether multiple items can be selected simultaneously.
Definition: CEGUIItemListbox.h:294
static const String EventSelectionChanged
Definition: CEGUIItemListbox.h:61
bool isMultiSelectEnabled(void) const
Returns 'true' if multiple selections are allowed. 'false' if not.
Definition: CEGUIItemListbox.h:142
virtual bool testClassName_impl(const String &class_name) const
Return whether this window was inherited from the given class name at some point in the inheritance h...
Definition: CEGUIItemListbox.h:228
static const String EventNamespace
Namespace for global events.
Definition: CEGUIItemListbox.h:50
Base class for item type widgets.
Definition: CEGUIItemEntry.h:78
Base class used as the argument to all subscribers Event object.
Definition: CEGUIEventArgs.h:52
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
Property to access the state of the multiselect enabled setting.
Definition: CEGUIItemListboxProperties.h:56
virtual ~ItemListbox(void)
Destructor for the ItemListbox base class.
Definition: CEGUIItemListbox.h:200
ItemListbox window class.
Definition: CEGUIItemListbox.h:47
EventArgs based class that is used for objects passed to input event handlers concerning keyboard inp...
Definition: CEGUIInputEvent.h:308
static const String WidgetTypeName
Window factory name.
Definition: CEGUIItemListbox.h:51
size_t d_nextSelectionIndex
The last item that was selected.
Definition: CEGUIItemListbox.h:295
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
ItemEntry * getLastSelectedItem(void) const
Returns a pointer to the last selected item.
Definition: CEGUIItemListbox.h:85
String class used within the GUI system.
Definition: CEGUIString.h:57