29 #ifndef _CEGUIListboxTextItem_h_ 30 #define _CEGUIListboxTextItem_h_ 31 #include "./ListboxItem.h" 32 #include "../BasicRenderedStringParser.h" 33 #include "../DefaultRenderedStringParser.h" 58 ListboxTextItem(
const String& text, uint item_id = 0,
void* item_data = 0,
bool disabled =
false,
bool auto_delete =
true);
81 const Font* getFont(
void)
const;
107 void setFont(
Font* font);
120 void setFont(
const String& font_name);
155 void setTextColours(
Colour top_left_colour,
Colour top_right_colour,
Colour bottom_left_colour,
Colour bottom_right_colour);
179 void setTextParsingEnabled(
const bool enable);
182 bool isTextParsingEnabled()
const;
185 void setText(
const String& text);
186 bool handleFontRenderSizeChange(
const Font*
const font);
192 Sizef getPixelSize(
void)
const;
196 void parseTextString()
const;
218 #endif // end of guard _CEGUIListboxTextItem_h_ static const Colour DefaultTextColour
Default text colour.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:48
RenderedString d_renderedString
RenderedString drawn by this item.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:206
bool d_renderedStringValid
boolean used to track when item state changes (and needs re-parse)
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:208
bool d_textParsingEnabled
boolean that specifies whether text parsing is enabled for the item.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:212
Main namespace for Crazy Eddie's GUI Library.
Definition: cegui/include/CEGUI/Affector.h:42
Effectively a 'null' parser that returns a RenderedString representation that will draw the input tex...
Definition: cegui/include/CEGUI/DefaultRenderedStringParser.h:40
Abstract class defining the interface for objects that buffer geometry for later rendering.
Definition: cegui/include/CEGUI/GeometryBuffer.h:42
static DefaultRenderedStringParser d_noTagsStringParser
Parser used when parsing is off. Basically just does linebreaks.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:210
Class that holds details of colours for the four corners of a rectangle.
Definition: cegui/include/CEGUI/ColourRect.h:43
Font * d_font
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:202
Class representing a rendered string of entities.
Definition: cegui/include/CEGUI/RenderedString.h:50
virtual ~ListboxTextItem(void)
base class destructor
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:65
ColourRect d_textCols
Colours used for rendering the text.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:201
Class that encapsulates a typeface.
Definition: cegui/include/CEGUI/Font.h:58
Class used for textual items in a list box.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:42
Base class for list box items.
Definition: cegui/include/CEGUI/widgets/ListboxItem.h:51
Basic RenderedStringParser class that offers support for the following tags:
Definition: cegui/include/CEGUI/BasicRenderedStringParser.h:64
Class representing colour values within the system.
Definition: cegui/include/CEGUI/Colour.h:44
void setTextColours(Colour col)
Set the colours used for text rendering.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:168
ColourRect getTextColours(void) const
Return the current colours used for text rendering.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:91
String class used within the GUI system.
Definition: cegui/include/CEGUI/String.h:62
void setTextColours(const ColourRect &cols)
Set the colours used for text rendering.
Definition: cegui/include/CEGUI/widgets/ListboxTextItem.h:133