30 #ifndef _CEGUIItemEntry_h_
31 #define _CEGUIItemEntry_h_
33 #include "../CEGUIBase.h"
34 #include "../CEGUIWindow.h"
35 #include "CEGUIItemEntryProperties.h"
38 # pragma warning(push)
39 # pragma warning(disable : 4251)
67 virtual Size getItemPixelSize(
void)
const = 0;
103 Size getItemPixelSize(
void)
const;
142 void select(
void) {setSelected_impl(
true,
true);}
148 void deselect(
void) {setSelected_impl(
false,
true);}
155 void setSelected_impl(
bool state,
bool notify);
170 void setSelectable(
bool setting);
217 if (class_name==
"ItemEntry")
return true;
224 return (name ==
"ItemEntry");
264 void addItemEntryProperties(
void);
269 #if defined(_MSC_VER)
270 # pragma warning(pop)
273 #endif // end of guard _CEGUIItemEntry_h_
bool isSelectable(void) const
Returns whether this item is selectable or not.
Definition: CEGUIItemEntry.h:122
void deselect(void)
Deselects the item.
Definition: CEGUIItemEntry.h:148
bool d_selected
'true' when the item is selectable.
Definition: CEGUIItemEntry.h:249
void setSelected(bool setting)
Sets the selection state of this item (on/off). If this item is not selectable this function does not...
Definition: CEGUIItemEntry.h:136
Base class for item type widgets.
Definition: CEGUIItemEntry.h:78
bool isSelected(void) const
Returns whether this item is selected or not.
Definition: CEGUIItemEntry.h:116
void select(void)
Selects the item.
Definition: CEGUIItemEntry.h:142
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
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: CEGUIWindow.h:3928
ItemListBase * d_ownerList
< pointer to the owner ItemListBase. 0 if there is none.
Definition: CEGUIItemEntry.h:246
Base-class for the assignable WindowRenderer object.
Definition: CEGUIWindowRenderer.h:51
Base class for ItemEntry window renderer objects.
Definition: CEGUIItemEntry.h:50
Property to access the state of the selectable setting.
Definition: CEGUIItemEntryProperties.h:55
ItemListBase * getOwnerList(void) const
Returns a pointer to the owner ItemListBase. 0 if there is none.
Definition: CEGUIItemEntry.h:110
virtual bool validateWindowRenderer(const String &name) const
Function used in checking if a WindowRenderer is valid for this window.
Definition: CEGUIItemEntry.h:222
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: CEGUIWindow.h:138
static const String WidgetTypeName
Window factory name.
Definition: CEGUIItemEntry.h:84
virtual ~ItemEntry(void)
Destructor for ItemEntry objects.
Definition: CEGUIItemEntry.h:185
EventArgs based class that is used for objects passed to handlers triggered for events concerning som...
Definition: CEGUIInputEvent.h:245
virtual bool testClassName_impl(const String &class_name) const
Return the "optimal" size for the item.
Definition: CEGUIItemEntry.h:215
EventArgs based class that is used for objects passed to input event handlers concerning mouse input...
Definition: CEGUIInputEvent.h:274
Base class for item list widgets.
Definition: CEGUIItemListBase.h:80
static const String EventSelectionChanged
Definition: CEGUIItemEntry.h:90
Property to access the state of the selected setting.
Definition: CEGUIItemEntryProperties.h:80
String class used within the GUI system.
Definition: CEGUIString.h:57