#include <glwx.h>
Static Public Member Functions | |
static int | addFont (const TiXmlElement *fontNodex) |
static int | findFontIndex (GUIFont *font) |
static GUIFont * | getFont (size_t index) |
static void | setCurrentFont (GUIFont *currentFont) |
static void | setCurrentFont (size_t index) |
static GUIFont * | getCurrentFont () |
static void | setDefaultFont (GUIFont *defaultFont) |
static void | setDefaultFont (size_t index) |
static GUIFont * | getDefaultFont () |
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 GUIFont * | currentFont = NULL |
static GUIFont * | defaultFont = NULL |
Definition at line 378 of file glwx.h.
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] |
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] |
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] |
bool GUIFontManager::addFont | ( | GUIFont * | font | ) | [static, private] |
vector< GUIFont * > GUIFontManager::guiFontList [static, private] |
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().