27 #ifndef _CEGUIBasicRenderedStringParser_h_
28 #define _CEGUIBasicRenderedStringParser_h_
30 #include "CEGUI/RenderedStringParser.h"
32 #include "CEGUI/Rect.h"
33 #include "CEGUI/ColourRect.h"
34 #include "CEGUI/String.h"
35 #include "CEGUI/falagard/Enums.h"
39 # pragma warning(push)
40 # pragma warning(disable : 4251)
68 static const String ColourTagName;
69 static const String FontTagName;
70 static const String ImageTagName;
71 static const String WindowTagName;
72 static const String VertAlignmentTagName;
73 static const String PaddingTagName;
74 static const String TopPaddingTagName;
75 static const String BottomPaddingTagName;
76 static const String LeftPaddingTagName;
77 static const String RightPaddingTagName;
78 static const String AspectLockTagName;
79 static const String ImageSizeTagName;
80 static const String ImageWidthTagName;
81 static const String ImageHeightTagName;
82 static const String TopAlignedValueName;
83 static const String BottomAlignedValueName;
84 static const String CentreAlignedValueName;
85 static const String StretchAlignedValueName;
112 void setInitialFontName(
const String& font_name);
122 void setInitialColours(
const ColourRect& colours);
129 const String& getInitialFontName()
const;
141 const Font* active_font,
152 virtual void initialiseDefaultState();
155 void initialiseTagHandlers();
203 #if defined(_MSC_VER)
204 # pragma warning(pop)
207 #endif // end of guard _CEGUIBasicRenderedStringParser_h_
VerticalFormatting d_vertAlignment
active vertical alignment
Definition: BasicRenderedStringParser.h:184
String d_fontName
active font.
Definition: BasicRenderedStringParser.h:182
VerticalFormatting
Enumeration of possible values to indicate the vertical formatting to be used for an image component...
Definition: Enums.h:58
bool d_initialised
true if handlers have been registered
Definition: BasicRenderedStringParser.h:191
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
std::map< String, TagHandler, StringFastLessCompare > TagHandlerMap
definition of type used to despatch tag handler functions
Definition: BasicRenderedStringParser.h:196
ColourRect d_initialColours
Definition: BasicRenderedStringParser.h:176
Class that holds details of colours for the four corners of a rectangle.
Definition: ColourRect.h:43
Class representing a rendered string of entities.
Definition: RenderedString.h:50
Sizef d_imageSize
active image size
Definition: BasicRenderedStringParser.h:186
TagHandlerMap d_tagHandlers
Collection to map tag names to their handler functions.
Definition: BasicRenderedStringParser.h:198
Rectf d_padding
active padding values.
Definition: BasicRenderedStringParser.h:178
Class that encapsulates a typeface.
Definition: Font.h:58
bool d_aspectLock
active 'aspect lock' state
Definition: BasicRenderedStringParser.h:188
Basic RenderedStringParser class that offers support for the following tags:
Definition: BasicRenderedStringParser.h:64
ColourRect d_colours
active colour values.
Definition: BasicRenderedStringParser.h:180
Specifies interface for classes that parse text into RenderedString objects.
Definition: RenderedStringParser.h:37
String d_initialFontName
Definition: BasicRenderedStringParser.h:174
String class used within the GUI system.
Definition: String.h:62