GUIFontManager Class Reference

#include <glwx.h>

Collaboration diagram for GUIFontManager:

Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static int addFont (const TiXmlElement *fontNodex)
static int findFontIndex (GUIFont *font)
static GUIFontgetFont (size_t index)
static void setCurrentFont (GUIFont *currentFont)
static void setCurrentFont (size_t index)
static GUIFontgetCurrentFont ()
static void setDefaultFont (GUIFont *defaultFont)
static void setDefaultFont (size_t index)
static GUIFontgetDefaultFont ()
static int getCharacterWidth (char Char, GUIFont *font)
static int getCharacterWidth (char Char, int index)
static void clear ()

Static Private Member Functions

static bool addFont (GUIFont *font)

Static Private Attributes

static vector
< GUIFont * > 
guiFontList
static GUIFontcurrentFont = NULL
static GUIFontdefaultFont = NULL


Detailed Description

Definition at line 378 of file glwx.h.


Member Function Documentation

int GUIFontManager::addFont ( const TiXmlElement *  fontNodex  )  [static]

Definition at line 83 of file GUIFontManager.cpp.

References GUIFont::build(), deleteObject, findFontIndex(), guiFontList, and GUIFont::loadXMLSettings().

Referenced by GUIText::loadXMLSettings(), and GUIFrame::loadXMLSettings().

int GUIFontManager::findFontIndex ( GUIFont font  )  [static]

Definition at line 66 of file GUIFontManager.cpp.

References guiFontList.

Referenced by addFont(), and GUIText::computeDimensions().

GUIFont * GUIFontManager::getFont ( size_t  index  )  [static]

Definition at line 78 of file GUIFontManager.cpp.

References guiFontList.

Referenced by GUIComboBox::finalizeSize(), getCharacterWidth(), setCurrentFont(), setDefaultFont(), GUITextBox::setupBlinker(), and GUITextBox::setupText().

void GUIFontManager::setCurrentFont ( GUIFont currentFont  )  [static]

Definition at line 35 of file GUIFontManager.cpp.

References currentFont, and defaultFont.

Referenced by GUIText::computeDimensions(), GUIText::print(), and setCurrentFont().

void GUIFontManager::setCurrentFont ( size_t  index  )  [static]

Definition at line 30 of file GUIFontManager.cpp.

References getFont(), and setCurrentFont().

GUIFont * GUIFontManager::getCurrentFont (  )  [static]

Definition at line 46 of file GUIFontManager.cpp.

References currentFont.

Referenced by GUIText::computeDimensions(), and GUIText::print().

void GUIFontManager::setDefaultFont ( GUIFont defaultFont  )  [static]

Definition at line 56 of file GUIFontManager.cpp.

References defaultFont.

Referenced by GUIFrame::loadXMLSettings(), and setDefaultFont().

void GUIFontManager::setDefaultFont ( size_t  index  )  [static]

Definition at line 51 of file GUIFontManager.cpp.

References getFont(), and setDefaultFont().

GUIFont * GUIFontManager::getDefaultFont (  )  [static]

Definition at line 61 of file GUIFontManager.cpp.

References defaultFont.

Referenced by GUIText::computeDimensions(), getCharacterWidth(), GUITextBox::GUITextBox(), and GUIText::print().

int GUIFontManager::getCharacterWidth ( char  Char,
GUIFont font 
) [static]

Definition at line 7 of file GUIFontManager.cpp.

References currentFont, getDefaultFont(), and GUIFont::getFontObject().

Referenced by GUITextBox::setupText().

int GUIFontManager::getCharacterWidth ( char  Char,
int  index 
) [static]

Definition at line 20 of file GUIFontManager.cpp.

References currentFont, getDefaultFont(), getFont(), and GUIFont::getFontObject().

void GUIFontManager::clear (  )  [static]

Definition at line 122 of file GUIFontManager.cpp.

References deleteObject, and guiFontList.

bool GUIFontManager::addFont ( GUIFont font  )  [static, private]

Definition at line 113 of file GUIFontManager.cpp.

References guiFontList.


Member Data Documentation

vector< GUIFont * > GUIFontManager::guiFontList [static, private]

Definition at line 400 of file glwx.h.

Referenced by addFont(), clear(), findFontIndex(), and getFont().

GUIFont * GUIFontManager::currentFont = NULL [static, private]

Definition at line 402 of file glwx.h.

Referenced by getCharacterWidth(), getCurrentFont(), and setCurrentFont().

GUIFont * GUIFontManager::defaultFont = NULL [static, private]

Definition at line 402 of file glwx.h.

Referenced by getDefaultFont(), setCurrentFont(), and setDefaultFont().


The documentation for this class was generated from the following files:
Generated on Wed Dec 5 20:32:03 2007 for GLWX by  doxygen 1.5.3