30 #ifndef _CEGUIListboxTextItem_h_
31 #define _CEGUIListboxTextItem_h_
32 #include "CEGUIListboxItem.h"
33 #include "../CEGUIBasicRenderedStringParser.h"
34 #include "../CEGUIDefaultRenderedStringParser.h"
59 ListboxTextItem(
const String& text, uint item_id = 0,
void* item_data = 0,
bool disabled =
false,
bool auto_delete =
true);
82 Font* getFont(
void)
const;
108 void setFont(
Font* font);
121 void setFont(
const String& font_name);
156 void setTextColours(
colour top_left_colour,
colour top_right_colour,
colour bottom_left_colour,
colour bottom_right_colour);
180 void setTextParsingEnabled(
const bool enable);
183 bool isTextParsingEnabled()
const;
186 void setText(
const String& text);
192 Size getPixelSize(
void)
const;
196 void parseTextString()
const;
218 #endif // end of guard _CEGUIListboxTextItem_h_
static DefaultRenderedStringParser d_noTagsStringParser
Parser used when parsing is off. Basically just does linebreaks.
Definition: CEGUIListboxTextItem.h:210
RenderedString d_renderedString
RenderedString drawn by this item.
Definition: CEGUIListboxTextItem.h:206
bool d_renderedStringValid
boolean used to track when item state changes (and needs re-parse)
Definition: CEGUIListboxTextItem.h:208
bool d_textParsingEnabled
boolean that specifies whether text parsing is enabled for the item.
Definition: CEGUIListboxTextItem.h:212
ColourRect getTextColours(void) const
Return the current colours used for text rendering.
Definition: CEGUIListboxTextItem.h:92
Effectively a 'null' parser that returns a RenderedString representation that will draw the input tex...
Definition: CEGUIDefaultRenderedStringParser.h:41
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: CEGUIGeometryBuffer.h:42
Class that holds the size (width & height) of something.
Definition: CEGUISize.h:43
Class representing colour values within the system.
Definition: CEGUIcolour.h:45
Class that holds details of colours for the four corners of a rectangle.
Definition: CEGUIColourRect.h:44
static const colour DefaultTextColour
Default text colour.
Definition: CEGUIListboxTextItem.h:49
Class representing a rendered string of entities.
Definition: CEGUIRenderedString.h:50
virtual ~ListboxTextItem(void)
base class destructor
Definition: CEGUIListboxTextItem.h:66
ColourRect d_textCols
Colours used for rendering the text.
Definition: CEGUIListboxTextItem.h:201
void setTextColours(colour col)
Set the colours used for text rendering.
Definition: CEGUIListboxTextItem.h:169
Class that encapsulates a typeface.
Definition: CEGUIFont.h:58
Font * d_font
Definition: CEGUIListboxTextItem.h:202
Class used for textual items in a list box.
Definition: CEGUIListboxTextItem.h:43
Base class for list box items.
Definition: CEGUIListboxItem.h:50
Basic RenderedStringParser class that offers support for the following tags:
Definition: CEGUIBasicRenderedStringParser.h:65
Class encapsulating operations on a Rectangle.
Definition: CEGUIRect.h:44
String class used within the GUI system.
Definition: CEGUIString.h:57
void setTextColours(const ColourRect &cols)
Set the colours used for text rendering.
Definition: CEGUIListboxTextItem.h:134