GG::Font::FormattingTag Struct Reference

The type of TextElement that represents a text formatting tag. More...

#include <Font.h>

Inheritance diagram for GG::Font::FormattingTag:

GG::Font::TextElement List of all members.

Public Member Functions

 FormattingTag (bool close)
virtual TextElementType Type () const
virtual int OriginalStringChars () const

Public Attributes

std::vector< std::string > params
std::string original_tag_text
const bool close_tag

Detailed Description

The type of TextElement that represents a text formatting tag.

Definition at line 145 of file Font.h.


Constructor & Destructor Documentation

GG::Font::FormattingTag::FormattingTag ( bool  close  ) 

Ctor. close indicates that the tag is a close-tag (e.g. "</rgba>").


Member Function Documentation

virtual TextElementType GG::Font::FormattingTag::Type (  )  const [virtual]

Returns the TextElementType of the element.

Reimplemented from GG::Font::TextElement.

virtual int GG::Font::FormattingTag::OriginalStringChars (  )  const [virtual]

Returns the number of characters in the original string that the element represents.

Reimplemented from GG::Font::TextElement.


Member Data Documentation

std::vector<std::string> GG::Font::FormattingTag::params

The parameter strings within the tag, eg "0", "0", "0", and "255" for the tag "<rgba 0 0 0 255>".

Definition at line 152 of file Font.h.

std::string GG::Font::FormattingTag::original_tag_text

The text as it appears in the original string.

Definition at line 153 of file Font.h.

const bool GG::Font::FormattingTag::close_tag

True iff this is a close-tag.

Definition at line 154 of file Font.h.


The documentation for this struct was generated from the following file:
Generated on Wed Mar 26 14:35:42 2008 for GG by  doxygen 1.5.2