Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
A tag looks like this "Hello [b]there[/b] little". More...
#include <CGUIString.h>
Classes | |
struct | TagAttribute |
Public Types | |
enum | TagType { TAG_B , TAG_I , TAG_FONT , TAG_SIZE , TAG_COLOR , TAG_IMGLEFT , TAG_IMGRIGHT , TAG_ICON , TAG_TOOLTIP , TAG_INVALID } |
Tag Type. More... | |
Public Member Functions | |
bool | SetTagType (const CStrW &tagtype) |
Set tag from string. More... | |
TagType | GetTagType (const CStrW &tagtype) const |
Public Attributes | |
TagType | m_TagType |
In [b="Hello"][/b] m_TagType is TAG_B. More... | |
std::wstring | m_TagValue |
In [b="Hello"][/b] m_TagValue is 'Hello'. More... | |
std::vector< TagAttribute > | m_TagAttributes |
Some tags need an additional attributes. More... | |
A tag looks like this "Hello [b]there[/b] little".
Tag Type.
Enumerator | |
---|---|
TAG_B | |
TAG_I | |
TAG_FONT | |
TAG_SIZE | |
TAG_COLOR | |
TAG_IMGLEFT | |
TAG_IMGRIGHT | |
TAG_ICON | |
TAG_TOOLTIP | |
TAG_INVALID |
CGUIString::TextChunk::Tag::TagType CGUIString::TextChunk::Tag::GetTagType | ( | const CStrW & | tagtype | ) | const |
bool CGUIString::TextChunk::Tag::SetTagType | ( | const CStrW & | tagtype | ) |
Set tag from string.
tagtype | TagType by string, like 'img' for [img] |
std::vector<TagAttribute> CGUIString::TextChunk::Tag::m_TagAttributes |
Some tags need an additional attributes.
TagType CGUIString::TextChunk::Tag::m_TagType |
In [b="Hello"][/b] m_TagType is TAG_B.
std::wstring CGUIString::TextChunk::Tag::m_TagValue |
In [b="Hello"][/b] m_TagValue is 'Hello'.