Crazy Eddie's GUI System
0.8.7
|
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);
196 void parseTextString()
const;
218 #endif // end of guard _CEGUIListboxTextItem_h_
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 setTextColours(Colour top_left_colour, Colour top_right_colour, Colour bottom_left_colour, Colour bottom_right_colour)
Set the colours used for text rendering.
bool handleFontRenderSizeChange(const Font *const font)
Perform any updates needed because the given font's render size has changed.
void setTextParsingEnabled(const bool enable)
Set whether the the ListboxTextItem will have it's text parsed via the BasicRenderedStringParser or n...
ListboxTextItem(const String &text, uint item_id=0, void *item_data=0, bool disabled=false, bool auto_delete=true)
base class constructor
void setTextColours(const ColourRect &cols)
Set the colours used for text rendering.
Definition: ListboxTextItem.h:133
ColourRect getTextColours(void) const
Return the current colours used for text rendering.
Definition: ListboxTextItem.h:91
bool d_textParsingEnabled
boolean that specifies whether text parsing is enabled for the item.
Definition: ListboxTextItem.h:212
virtual ~ListboxTextItem(void)
base class destructor
Definition: ListboxTextItem.h:65
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
static DefaultRenderedStringParser d_noTagsStringParser
Parser used when parsing is off. Basically just does linebreaks.
Definition: ListboxTextItem.h:210
ColourRect d_textCols
Colours used for rendering the text.
Definition: ListboxTextItem.h:201
Class representing a rendered string of entities.
Definition: RenderedString.h:52
bool d_renderedStringValid
boolean used to track when item state changes (and needs re-parse)
Definition: ListboxTextItem.h:208
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:45
Sizef getPixelSize(void) const
Return the rendered pixel size of this list box item.
bool isTextParsingEnabled() const
return whether text parsing is enabled for this ListboxTextItem.
Font * d_font
Definition: ListboxTextItem.h:202
void setFont(Font *font)
Set the font to be used by this ListboxTextItem.
void draw(GeometryBuffer &buffer, const Rectf &targetRect, float alpha, const Rectf *clipper) const
Draw the list box item in its current state.
void setText(const String &text)
set the text string for this list box item.
void setTextColours(Colour col)
Set the colours used for text rendering.
Definition: ListboxTextItem.h:168
static const Colour DefaultTextColour
Default text colour.
Definition: ListboxTextItem.h:48
Class used for textual items in a list box.
Definition: ListboxTextItem.h:43
String class used within the GUI system.
Definition: String.h:64
void setFont(const String &font_name)
Set the font to be used by this ListboxTextItem.
Effectively a 'null' parser that returns a RenderedString representation that will draw the input tex...
Definition: DefaultRenderedStringParser.h:41
const Font * getFont(void) const
Return a pointer to the font being used by this ListboxTextItem.
Class representing colour values within the system.
Definition: Colour.h:46
RenderedString d_renderedString
RenderedString drawn by this item.
Definition: ListboxTextItem.h:206
Basic RenderedStringParser class that offers support for the following tags:
Definition: BasicRenderedStringParser.h:65
Base class for list box items.
Definition: ListboxItem.h:53