#include <guiHyperText.h>
|
enum | ElementType { ELEMENT_TEXT
, ELEMENT_SEPARATOR
, ELEMENT_IMAGE
, ELEMENT_ITEM
} |
|
enum | BackgroundType { BACKGROUND_NONE
, BACKGROUND_COLOR
} |
|
enum | FloatType { FLOAT_NONE
, FLOAT_RIGHT
, FLOAT_LEFT
} |
|
enum | HalignType { HALIGN_CENTER
, HALIGN_LEFT
, HALIGN_RIGHT
, HALIGN_JUSTIFY
} |
|
enum | ValignType { VALIGN_MIDDLE
, VALIGN_TOP
, VALIGN_BOTTOM
} |
|
typedef std::unordered_map< std::string, std::string > | StyleList |
|
typedef std::unordered_map< std::string, std::string > | AttrsList |
|
◆ AttrsList
◆ StyleList
◆ BackgroundType
Enumerator |
---|
BACKGROUND_NONE | |
BACKGROUND_COLOR | |
◆ ElementType
Enumerator |
---|
ELEMENT_TEXT | |
ELEMENT_SEPARATOR | |
ELEMENT_IMAGE | |
ELEMENT_ITEM | |
◆ EndReason
Enumerator |
---|
ER_NONE | |
ER_TAG | |
ER_NEWLINE | |
◆ FloatType
Enumerator |
---|
FLOAT_NONE | |
FLOAT_RIGHT | |
FLOAT_LEFT | |
◆ HalignType
Enumerator |
---|
HALIGN_CENTER | |
HALIGN_LEFT | |
HALIGN_RIGHT | |
HALIGN_JUSTIFY | |
◆ ValignType
Enumerator |
---|
VALIGN_MIDDLE | |
VALIGN_TOP | |
VALIGN_BOTTOM | |
◆ ParsedText()
ParsedText::ParsedText |
( |
const wchar_t * | text | ) |
|
References ER_NONE, m_active_tags, m_element, m_elementtags, m_end_paragraph_reason, m_paragraph, m_paragraphtags, m_root_tag, m_style, ParsedText::Tag::name, parse(), and ParsedText::Tag::style.
◆ ~ParsedText()
ParsedText::~ParsedText |
( |
| ) |
|
◆ closeTag()
bool ParsedText::closeTag |
( |
const std::string & | name | ) |
|
|
protected |
◆ endElement()
void ParsedText::endElement |
( |
| ) |
|
|
protected |
◆ endParagraph()
void ParsedText::endParagraph |
( |
EndReason | reason | ) |
|
|
protected |
◆ enterElement()
References ParsedText::Paragraph::elements, enterParagraph(), m_active_tags, m_element, m_paragraph, m_style, ParsedText::Element::setStyle(), ParsedText::Element::tags, and ParsedText::Element::type.
Referenced by parse(), parseTag(), and pushChar().
◆ enterParagraph()
void ParsedText::enterParagraph |
( |
| ) |
|
|
protected |
◆ globalTag()
References BACKGROUND_COLOR, background_color, BACKGROUND_NONE, background_type, check_integer(), m_root_tag, margin, parseColorString(), parseGenericStyleAttr(), stoi, ParsedText::Tag::style, valign, VALIGN_BOTTOM, VALIGN_MIDDLE, and VALIGN_TOP.
Referenced by parseTag().
◆ newTag()
◆ openTag()
◆ parse()
void ParsedText::parse |
( |
const wchar_t * | text | ) |
|
|
protected |
◆ parseGenericStyleAttr()
void ParsedText::parseGenericStyleAttr |
( |
const std::string & | name, |
|
|
const std::string & | value, |
|
|
StyleList & | style ) |
|
protected |
◆ parseStyles()
◆ parseTag()
u32 ParsedText::parseTag |
( |
const wchar_t * | text, |
|
|
u32 | cursor ) |
|
protected |
References ParsedText::Element::angle, closeTag(), ParsedText::Element::dim, ELEMENT_IMAGE, ELEMENT_ITEM, endElement(), endParagraph(), enterElement(), ER_TAG, FLOAT_LEFT, FLOAT_RIGHT, ParsedText::Element::floating, globalTag(), is_yes(), m_active_tags, m_element, m_elementtags, m_paragraphtags, m_style, newTag(), openTag(), parseStyles(), rangelim, ParsedText::Element::rotation, split(), stoi, ParsedText::Tag::style, ParsedText::Element::text, and wide_to_utf8().
Referenced by parse().
◆ pushChar()
void ParsedText::pushChar |
( |
wchar_t | c | ) |
|
|
protected |
◆ background_color
irr::video::SColor ParsedText::background_color |
◆ background_type
◆ m_active_tags
std::list<Tag *> ParsedText::m_active_tags |
|
protected |
◆ m_element
◆ m_elementtags
std::unordered_map<std::string, StyleList> ParsedText::m_elementtags |
|
protected |
◆ m_empty_paragraph
bool ParsedText::m_empty_paragraph |
|
protected |
◆ m_end_paragraph_reason
◆ m_not_root_tags
std::vector<Tag *> ParsedText::m_not_root_tags |
|
protected |
◆ m_paragraph
◆ m_paragraphs
std::vector<Paragraph> ParsedText::m_paragraphs |
◆ m_paragraphtags
std::unordered_map<std::string, StyleList> ParsedText::m_paragraphtags |
|
protected |
◆ m_root_tag
Tag ParsedText::m_root_tag |
◆ m_style
◆ margin
s32 ParsedText::margin = 3 |
◆ valign
The documentation for this class was generated from the following files: