Pyrogenesis  trunk
Classes | Public Types | Public Member Functions | Public Attributes | List of all members
CGUIString::TextChunk::Tag Struct Reference

A tag looks like this "Hello [b]there[/b] little". More...

#include <GUItext.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_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< TagAttributem_TagAttributes
 Some tags need an additional attributes. More...
 

Detailed Description

A tag looks like this "Hello [b]there[/b] little".

Member Enumeration Documentation

enum CGUIString::TextChunk::Tag::TagType

Tag Type.

Enumerator
TAG_B 
TAG_I 
TAG_FONT 
TAG_SIZE 
TAG_COLOR 
TAG_IMGLEFT 
TAG_IMGRIGHT 
TAG_ICON 
TAG_INVALID 

Member Function Documentation

CGUIString::TextChunk::Tag::TagType CGUIString::TextChunk::Tag::GetTagType ( const CStrW &  tagtype) const
bool CGUIString::TextChunk::Tag::SetTagType ( const CStrW &  tagtype)

Set tag from string.

Parameters
tagtypeTagType by string, like 'img' for [img]
Returns
True if m_TagType was set.

Member Data Documentation

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'.


The documentation for this struct was generated from the following files: