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