GG
|
#include <Font.h>
Public Member Functions | |
FormattingTag (bool close) | |
virtual TextElementType | Type () const |
![]() | |
TextElement (bool ws, bool nl) | |
virtual | ~TextElement () |
X | Width () const |
CPSize | CodePointSize () const |
Public Attributes | |
std::vector< Substring > | params |
Substring | tag_name |
const bool | close_tag |
![]() | |
Substring | text |
std::vector< X > | widths |
const bool | whitespace |
const bool | newline |
Additional Inherited Members | |
![]() | |
enum | TextElementType { OPEN_TAG, CLOSE_TAG, TEXT, WHITESPACE, NEWLINE } |
The type of TextElement that represents a text formatting tag.
GG::Font::FormattingTag::FormattingTag | ( | bool | close | ) |
Ctor. close indicates that the tag is a close-tag (e.g. "</rgba>").
|
virtual |
Returns the TextElementType of the element.
Reimplemented from GG::Font::TextElement.
std::vector<Substring> GG::Font::FormattingTag::params |
Substring GG::Font::FormattingTag::tag_name |
const bool GG::Font::FormattingTag::close_tag |