GG::Font::LineData Struct Reference

Holds the essential data on each line that a string occupies when rendered with given format flags. More...

#include <Font.h>

List of all members.

Classes

struct  CharData
 Contains the extent, the index into the original string, and the text formatting tags that should be applied before rendering of a visible glyph. More...

Public Member Functions

 LineData ()
X Width () const
bool Empty () const

Public Attributes

std::vector< CharDatachar_data
Alignment justification


Detailed Description

Holds the essential data on each line that a string occupies when rendered with given format flags.

char_data contains the visible glyphs for each line, plus any text formatting tags present on that line as well.

Definition at line 273 of file Font.h.


Constructor & Destructor Documentation

GG::Font::LineData::LineData (  ) 

Default ctor.


Member Function Documentation

X GG::Font::LineData::Width (  )  const

Returns the width of the line.

bool GG::Font::LineData::Empty (  )  const

Returns true iff char_data has size 0.


Member Data Documentation

Data on each individual glyph.

Definition at line 318 of file Font.h.

FORMAT_LEFT, FORMAT_CENTER, or FORMAT_RIGHT; derived from text format flags and/or formatting tags in the text.

Definition at line 322 of file Font.h.


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

Generated on Sat Mar 26 07:08:38 2011 for GG by  doxygen 1.5.9