29 #ifndef _CEGUIListboxItem_h_
30 #define _CEGUIListboxItem_h_
33 #include "../String.h"
34 #include "../ColourRect.h"
35 #include "../TextUtils.h"
40 # pragma warning(push)
41 # pragma warning(disable : 4251)
68 ListboxItem(
const String& text, uint item_id = 0,
void* item_data = 0,
bool disabled =
false,
bool auto_delete =
true);
93 const String& getText(
void)
const {
return d_textLogical;}
96 const String& getTextVisual()
const;
108 uint
getID(
void)
const {
return d_itemID;}
205 virtual void setText(
const String& text);
207 void setTooltipText(
const String& text) {d_tooltipText = text;}
222 void setID(uint item_id) {d_itemID = item_id;}
328 void setSelectionColours(
Colour top_left_colour,
Colour top_right_colour,
Colour bottom_left_colour,
Colour bottom_right_colour);
367 void setSelectionBrushImage(
const String& name);
384 virtual bool handleFontRenderSizeChange(
const Font*
const font);
396 virtual Sizef getPixelSize(
void)
const = 0;
416 float alpha,
const Rectf* clipper)
const = 0;
452 Colour calculateModulatedAlphaColour(
Colour col,
float alpha)
const;
476 #if defined(_MSC_VER)
477 # pragma warning(pop)
480 #endif // end of guard _CEGUIListboxItem_h_
uint getID(void) const
Return the current ID assigned to this list box item.
Definition: ListboxItem.h:108
virtual bool operator>(const ListboxItem &rhs) const
Greater-than operator, compares item texts.
Definition: ListboxItem.h:432
void setOwnerWindow(const Window *owner)
Set the owner window for this ListboxItem. This is called by all the list box widgets when an item is...
Definition: ListboxItem.h:293
Definition: MemoryAllocatedObject.h:109
String d_tooltipText
Text for the individual tooltip of this item.
Definition: ListboxItem.h:463
void * getUserData(void) const
Return the pointer to any client assigned user data attached to this lis box item.
Definition: ListboxItem.h:121
const Image * getSelectionBrushImage(void) const
Return the current selection highlighting brush.
Definition: ListboxItem.h:186
Interface for Image.
Definition: Image.h:158
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
bool isSelected(void) const
return whether this item is selected.
Definition: ListboxItem.h:131
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:42
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
bool d_autoDelete
true if the system should destroy this item, false if client code will destroy the item...
Definition: ListboxItem.h:468
Abstract class to wrap a Bidi visual mapping of a text string.
Definition: BidiVisualMapping.h:50
void setUserData(void *item_data)
Set the client assigned user data attached to this lis box item.
Definition: ListboxItem.h:238
void setDisabled(bool setting)
set whether this item is disabled.
Definition: ListboxItem.h:264
const String & getTooltipText(void) const
return the text string set for this list box item.
Definition: ListboxItem.h:91
void setSelected(bool setting)
set whether this item is selected.
Definition: ListboxItem.h:251
const Window * getOwnerWindow() const
Get the owner window for this ListboxItem.
Definition: ListboxItem.h:166
void setSelectionColours(const ColourRect &cols)
Set the colours used for selection highlighting.
Definition: ListboxItem.h:306
Class that encapsulates a typeface.
Definition: Font.h:58
uint d_itemID
ID code assigned by client code. This has no meaning within the GUI system.
Definition: ListboxItem.h:464
BidiVisualMapping * d_bidiVisualMapping
pointer to bidirection support object
Definition: ListboxItem.h:460
bool isAutoDeleted(void) const
return whether this item will be automatically deleted when the list box it is attached to is destroy...
Definition: ListboxItem.h:154
const Window * d_owner
Pointer to the window that owns this item.
Definition: ListboxItem.h:469
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:149
Base class for list box items.
Definition: ListboxItem.h:51
bool d_bidiDataValid
whether bidi visual mapping has been updated since last text change.
Definition: ListboxItem.h:462
const Image * d_selectBrush
Image used for rendering selection.
Definition: ListboxItem.h:471
void setID(uint item_id)
Set the ID assigned to this list box item.
Definition: ListboxItem.h:222
Class representing colour values within the system.
Definition: Colour.h:44
void * d_itemData
Pointer to some client code data. This has no meaning within the GUI system.
Definition: ListboxItem.h:465
void setSelectionBrushImage(const Image *image)
Set the selection highlighting brush image.
Definition: ListboxItem.h:354
virtual bool operator<(const ListboxItem &rhs) const
Less-than operator, compares item texts.
Definition: ListboxItem.h:425
ColourRect d_selectCols
Colours used for selection highlighting.
Definition: ListboxItem.h:470
void setSelectionColours(Colour col)
Set the colours used for selection highlighting.
Definition: ListboxItem.h:341
bool d_disabled
true if this item is disabled. false if the item is not disabled.
Definition: ListboxItem.h:467
void setAutoDeleted(bool setting)
Set whether this item will be automatically deleted when the list box it is attached to is destroyed...
Definition: ListboxItem.h:279
ColourRect getSelectionColours(void) const
Return the current colours used for selection highlighting.
Definition: ListboxItem.h:176
bool isDisabled(void) const
return whether this item is disabled.
Definition: ListboxItem.h:141
bool d_selected
true if this item is selected. false if the item is not selected.
Definition: ListboxItem.h:466
String class used within the GUI system.
Definition: String.h:62
static const Colour DefaultSelectionColour
Default selection brush colour.
Definition: ListboxItem.h:58