GG::Font::RenderState Struct Reference

Holds the state of tags during rendering of text. More...

#include <Font.h>

List of all members.

Public Member Functions

 RenderState ()

Public Attributes

bool ignore_tags
bool use_italics
bool draw_underline
bool color_set
Clr curr_color


Detailed Description

Holds the state of tags during rendering of text.

By keeping track of this state across multiple calls to RenderText(), the user can preserve the functionality of the text formatting tags, if present.

Definition at line 202 of file Font.h.


Constructor & Destructor Documentation

GG::Font::RenderState::RenderState (  ) 

default ctor


Member Data Documentation

bool GG::Font::RenderState::ignore_tags

set to true upon encountering a <pre> tag, and to false when a </pre> tag is seen

Definition at line 206 of file Font.h.

bool GG::Font::RenderState::use_italics

set to true upon encountering an <i> tag, and to false when an </i> tag is seen

Definition at line 207 of file Font.h.

bool GG::Font::RenderState::draw_underline

set to true upon encountering an <u> tag, and to false when an </u> tag is seen

Definition at line 208 of file Font.h.

bool GG::Font::RenderState::color_set

true when a tag has set the current color

Definition at line 209 of file Font.h.

Clr GG::Font::RenderState::curr_color

the current text color (as set by a tag)

Definition at line 210 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