27#ifndef _CEGUIItemListbox_h_
28#define _CEGUIItemListbox_h_
30#include "./ScrolledItemListBase.h"
34# pragma warning(disable : 4251)
271 void addItemListboxProperties(
void);
Base class used as the argument to all subscribers Event object.
Definition: EventArgs.h:51
Base class for item type widgets.
Definition: widgets/ItemEntry.h:77
ItemListbox window class.
Definition: widgets/ItemListbox.h:46
ItemListbox(const String &type, const String &name)
Constructor for the ItemListbox base class constructor.
ItemEntry * getLastSelectedItem(void) const
Returns a pointer to the last selected item.
Definition: widgets/ItemListbox.h:83
static const String EventMultiSelectModeChanged
Definition: widgets/ItemListbox.h:65
virtual void notifyItemSelectState(ItemEntry *li, bool state)
Notify this ItemListbox that the given ListItem just changed selection state. Internal function - not...
bool isItemSelected(size_t index) const
Returns 'true' if the item at the given index is selectable and currently selected.
size_t getSelectedCount(void) const
Returns the number of selected items in this ItemListbox.
static const String WidgetTypeName
Window factory name.
Definition: widgets/ItemListbox.h:49
virtual Sizef getContentSize() const
Returns the Size in unclipped pixels of the content attached to this ItemListbox.
virtual void layoutItemWidgets()
Setup size and position for the item widgets attached to this ItemListbox.
ItemEntry * findSelectedItem(size_t start_index) const
Returns a pointer to the first selected item starting the search from start_index.
ItemEntry * getFirstSelectedItem(size_t start_index=0) const
Returns a pointer to the first selected item.
size_t d_nextSelectionIndex
The last item that was selected.
Definition: widgets/ItemListbox.h:268
void selectAllItems(void)
Select all items. Does nothing if multiselect is disabled.
void setMultiSelectEnabled(bool state)
Set whether or not multiple selections should be allowed.
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
virtual ~ItemListbox(void)
Destructor for the ItemListbox base class.
Definition: widgets/ItemListbox.h:195
void clearAllSelections(void)
Clears all selections.
void selectRange(size_t a, size_t z)
Select a range of items.
bool handle_PaneChildRemoved(const EventArgs &e)
Handler to manage items being removed from the content pane. If there is one!
ItemEntry * getNextSelectedItem(void) const
Returns a pointer to the next seleced item relative to a previous call to getFirstSelectedItem or get...
static const String EventSelectionChanged
Definition: widgets/ItemListbox.h:59
virtual void onKeyDown(KeyEventArgs &e)
Handler called when a key as been depressed while this window has input focus.
ItemEntry * getNextSelectedItemAfter(const ItemEntry *start_item) const
Returns a pointer to the next selected item after the item 'start_item' given.
ItemEntry * d_lastSelected
Controls whether multiple items can be selected simultaneously.
Definition: widgets/ItemListbox.h:267
virtual void notifyItemClicked(ItemEntry *li)
Notify this ItemListbox that the given ListItem was just clicked. Internal function - not to be used ...
EventArgs based class that is used for objects passed to input event handlers concerning keyboard inp...
Definition: InputEvent.h:315
String class used within the GUI system.
Definition: String.h:64
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: InputEvent.h:252
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1