29#ifndef _CEGUIItemEntry_h_
30#define _CEGUIItemEntry_h_
37# pragma warning(disable : 4251)
140 void select(
void) {setSelected_impl(
true,
true);}
146 void deselect(
void) {setSelected_impl(
false,
true);}
237 void addItemEntryProperties(
void);
Base class for ItemEntry window renderer objects.
Definition widgets/ItemEntry.h:49
ItemEntryWindowRenderer(const String &name)
Constructor.
virtual Sizef getItemPixelSize(void) const =0
Return the "optimal" size for the item.
Base class for item type widgets.
Definition widgets/ItemEntry.h:77
virtual void onSelectionChanged(WindowEventArgs &e)
Handles selection state changes.
bool isSelected(void) const
Returns whether this item is selected or not.
Definition widgets/ItemEntry.h:114
bool isSelectable(void) const
Returns whether this item is selectable or not.
Definition widgets/ItemEntry.h:120
void setSelectable(bool setting)
Sets whether this item will be selectable.
void setSelected(bool setting)
Sets the selection state of this item (on/off). If this item is not selectable this function does not...
Definition widgets/ItemEntry.h:134
Sizef getItemPixelSize(void) const
Return the "optimal" size for the item.
void setSelected_impl(bool state, bool notify)
Set the selection state for this ListItem. Internal version. Should NOT be used by client code.
ItemEntry(const String &type, const String &name)
Constructor for ItemEntry objects.
virtual bool validateWindowRenderer(const WindowRenderer *renderer) const
Return the "optimal" size for the item.
void deselect(void)
Deselects the item.
Definition widgets/ItemEntry.h:146
ItemListBase * d_ownerList
< pointer to the owner ItemListBase. 0 if there is none.
Definition widgets/ItemEntry.h:224
ItemListBase * getOwnerList(void) const
Returns a pointer to the owner ItemListBase. 0 if there is none.
Definition widgets/ItemEntry.h:108
static const String EventSelectionChanged
Definition widgets/ItemEntry.h:88
virtual void onMouseClicked(MouseEventArgs &e)
Handler called when a mouse button has been clicked (that is depressed and then released,...
void select(void)
Selects the item.
Definition widgets/ItemEntry.h:140
virtual ~ItemEntry(void)
Destructor for ItemEntry objects.
Definition widgets/ItemEntry.h:183
static const String WidgetTypeName
Window factory name.
Definition widgets/ItemEntry.h:82
bool d_selected
'true' when the item is selectable.
Definition widgets/ItemEntry.h:227
Base class for item list widgets.
Definition ItemListBase.h:79
EventArgs based class that is used for objects passed to input event handlers concerning mouse input.
Definition InputEvent.h:281
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
Base-class for the assignable WindowRenderer object.
Definition WindowRenderer.h:52
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition Window.h:151
Main namespace for Crazy Eddie's GUI Library.
Definition arch_overview.dox:1