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.

Public Member Functions

 LineData ()
int Width () const
bool Empty () const

Public Attributes

std::vector< CharDatachar_data
Alignment justification

Classes

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


Detailed Description

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

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

Definition at line 166 of file Font.h.


Constructor & Destructor Documentation

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

Default ctor.


Member Function Documentation

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

returns the width of the line, in pixels

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

returns true iff char_data has size 0


Member Data Documentation

std::vector<CharData> GG::Font::LineData::char_data

Data on each individual character.

Definition at line 191 of file Font.h.

Alignment GG::Font::LineData::justification

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

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