Crazy Eddie's GUI System
0.8.7
|
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;}
108 uint
getID(
void)
const {
return d_itemID;}
207 void setTooltipText(
const String& text) {d_tooltipText = text;}
222 void setID(uint item_id) {d_itemID = item_id;}
416 float alpha,
const Rectf* clipper)
const = 0;
476 #if defined(_MSC_VER)
477 # pragma warning(pop)
480 #endif // end of guard _CEGUIListboxItem_h_
ColourRect d_selectCols
Colours used for selection highlighting.
Definition: ListboxItem.h:470
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: GeometryBuffer.h:44
Class that encapsulates a typeface.
Definition: Font.h:62
void setUserData(void *item_data)
Set the client assigned user data attached to this lis box item.
Definition: ListboxItem.h:238
void * getUserData(void) const
Return the pointer to any client assigned user data attached to this lis box item.
Definition: ListboxItem.h:121
void setSelectionBrushImage(const Image *image)
Set the selection highlighting brush image.
Definition: ListboxItem.h:354
ColourRect getModulateAlphaColourRect(const ColourRect &cols, float alpha) const
Return a ColourRect object describing the colours in cols after having their alpha component modulate...
void setSelectionColours(Colour col)
Set the colours used for selection highlighting.
Definition: ListboxItem.h:341
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
BidiVisualMapping * d_bidiVisualMapping
pointer to bidirection support object
Definition: ListboxItem.h:460
void setSelectionColours(Colour top_left_colour, Colour top_right_colour, Colour bottom_left_colour, Colour bottom_right_colour)
Set the colours used for selection highlighting.
static const Colour DefaultSelectionColour
Default selection brush colour.
Definition: ListboxItem.h:58
Definition: MemoryAllocatedObject.h:110
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:45
virtual bool operator<(const ListboxItem &rhs) const
Less-than operator, compares item texts.
Definition: ListboxItem.h:425
Abstract class to wrap a Bidi visual mapping of a text string.
Definition: BidiVisualMapping.h:52
Colour calculateModulatedAlphaColour(Colour col, float alpha) const
Return a colour value describing the colour specified by col after having its alpha component modulat...
void * d_itemData
Pointer to some client code data. This has no meaning within the GUI system.
Definition: ListboxItem.h:465
void setSelectionBrushImage(const String &name)
Set the selection highlighting brush image.
bool d_disabled
true if this item is disabled. false if the item is not disabled.
Definition: ListboxItem.h:467
virtual Sizef getPixelSize(void) const =0
Return the rendered pixel size of this list box item.
virtual void setText(const String &text)
set the text string for this list box item.
const Image * d_selectBrush
Image used for rendering selection.
Definition: ListboxItem.h:471
const Window * getOwnerWindow() const
Get the owner window for this ListboxItem.
Definition: ListboxItem.h:166
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
bool isDisabled(void) const
return whether this item is disabled.
Definition: ListboxItem.h:141
bool isSelected(void) const
return whether this item is selected.
Definition: ListboxItem.h:131
bool d_autoDelete
true if the system should destroy this item, false if client code will destroy the item.
Definition: ListboxItem.h:468
void setSelected(bool setting)
set whether this item is selected.
Definition: ListboxItem.h:251
const String & getTooltipText(void) const
return the text string set for this list box item.
Definition: ListboxItem.h:91
An abstract base class providing common functionality and specifying the required interface for deriv...
Definition: Window.h:151
bool d_selected
true if this item is selected. false if the item is not selected.
Definition: ListboxItem.h:466
bool d_bidiDataValid
whether bidi visual mapping has been updated since last text change.
Definition: ListboxItem.h:462
virtual ~ListboxItem(void)
base class destructor
String d_tooltipText
Text for the individual tooltip of this item.
Definition: ListboxItem.h:463
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
const Image * getSelectionBrushImage(void) const
Return the current selection highlighting brush.
Definition: ListboxItem.h:186
String class used within the GUI system.
Definition: String.h:64
void setSelectionColours(const ColourRect &cols)
Set the colours used for selection highlighting.
Definition: ListboxItem.h:306
ColourRect getSelectionColours(void) const
Return the current colours used for selection highlighting.
Definition: ListboxItem.h:176
const Window * d_owner
Pointer to the window that owns this item.
Definition: ListboxItem.h:469
Class representing colour values within the system.
Definition: Colour.h:46
void setID(uint item_id)
Set the ID assigned to this list box item.
Definition: ListboxItem.h:222
uint d_itemID
ID code assigned by client code. This has no meaning within the GUI system.
Definition: ListboxItem.h:464
const String & getTextVisual() const
return text string with visual ordering of glyphs.
Interface for Image.
Definition: Image.h:161
uint getID(void) const
Return the current ID assigned to this list box item.
Definition: ListboxItem.h:108
void setDisabled(bool setting)
set whether this item is disabled.
Definition: ListboxItem.h:264
virtual bool operator>(const ListboxItem &rhs) const
Greater-than operator, compares item texts.
Definition: ListboxItem.h:432
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
virtual bool handleFontRenderSizeChange(const Font *const font)
Perform any updates needed because the given font's render size has changed.
ListboxItem(const String &text, uint item_id=0, void *item_data=0, bool disabled=false, bool auto_delete=true)
base class constructor
virtual void draw(GeometryBuffer &buffer, const Rectf &targetRect, float alpha, const Rectf *clipper) const =0
Draw the list box item in its current state.
Base class for list box items.
Definition: ListboxItem.h:53