This class implements a character font changing tag. More...
#include <defaultmarkupparser.h>
Public Member Functions | |
DefaultFontTag () | |
Class constructor. | |
virtual | ~DefaultFontTag () |
Class destructor. | |
virtual const String & | GetName () const |
Gets the name of this tag. More... | |
virtual Boolean | IsRangeTag () const |
Gets whether or not this tag applies to a range of characters. More... | |
virtual ProcessResult | Process (NameValuePairMap &Params, CharacterTraits &Traits, TextLayer *Layer) const |
Processes this tag. More... | |
Public Member Functions inherited from Mezzanine::UI::MarkupTag | |
MarkupTag () | |
Class constructor. | |
virtual | ~MarkupTag () |
Class destructor. | |
Static Public Attributes | |
static const String | TagName = "Font" |
The name of this tag as it should appear in markup. | |
Additional Inherited Members | |
Public Types inherited from Mezzanine::UI::MarkupTag | |
typedef std::list< Character * > | CharacterContainer |
Basic container type for the storage of Character instances by this class. | |
typedef CharacterContainer::iterator | CharacterIterator |
Iterator type for Character instances stored by this class. | |
typedef CharacterContainer::const_iterator | ConstCharacterIterator |
Const Iterator type for Character instances stored by this class. | |
typedef std::pair< Boolean, Character * > | ProcessResult |
An std::pair used to report the result of a MarkupTag being processed any the character it may have generated. | |
This class implements a character font changing tag.
This tag only supports long notation. Example: "[Font Name=Ubuntu]". A size can also be specified such as in this example: "[Font Name=Ubuntu Size=12]". The name is the same name as specified in the texture atlas the calling layer has set as it's primary. The size is the vertical height in pixels (before scaling) the glyphs should be rendered as. Glyphs with their height set have their aspect ratio's preserved.
Currently the size parameter is not implemented.
Definition at line 95 of file defaultmarkupparser.h.
|
inlinevirtual |
Gets the name of this tag.
Implements Mezzanine::UI::MarkupTag.
Definition at line 113 of file defaultmarkupparser.h.
|
inlinevirtual |
Gets whether or not this tag applies to a range of characters.
Implements Mezzanine::UI::MarkupTag.
Definition at line 116 of file defaultmarkupparser.h.
|
virtual |
Processes this tag.
Params | A NameValuePairMap of all the parameters provided for this tag. |
Traits | The character traits to be modified and used for future character construction. |
Layer | A pointer to the TextLayer currently being parsed. |
Implements Mezzanine::UI::MarkupTag.
Definition at line 78 of file defaultmarkupparser.cpp.