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