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