|
VizKit
3.0
|
#include <VisualFontManager.h>
Public Member Functions | |
| bool | fontIsAvailableAsVisualizerResource (const char *const fontName) |
| VisualFontActivationResult | activateFont (const char *const fontName) |
| void | sortFontsByName (void) |
| void | addFont (const char *const fontName) |
Static Public Member Functions | |
| static VisualFontManager * | getInstance (void) |
| static void | dispose (void) |
Private Member Functions | |
| VisualFontManager () | |
| ~VisualFontManager () | |
| VisualFontManager (const VisualFontManager &other) | |
| VisualFontManager & | operator= (const VisualFontManager &other) |
| void | initCocoaFunctionPointers (void) |
Static Private Attributes | |
| static VisualFontManager * | theVisualFontManager = NULL |
Management of font resources.
| VisualFontManager::VisualFontManager | ( | ) | [private] |
The constructor. VisualFontManager is a singleton class. The constructor is private. New instance of class can only be created internally.
| VisualFontManager::~VisualFontManager | ( | ) | [private] |
The destructor. VisualFontManager is a singleton class. The destructor is private. Instance of class can only be destructed internally.
| VizKit::VisualFontManager::VisualFontManager | ( | const VisualFontManager & | other | ) | [private] |
Copy constructor.
| other | Another VisualFontManager. |
| VisualFontActivationResult VisualFontManager::activateFont | ( | const char *const | fontName | ) |
Tries to activate font by loading a font resource.
| fontName | The name of the font. |
| void VizKit::VisualFontManager::addFont | ( | const char *const | fontName | ) |
Adds a font name to the gathered list of font names.
| fontName | The name of the font to add. |
| void VisualFontManager::dispose | ( | void | ) | [static] |
Disposes the VisualFontManager.
| bool VisualFontManager::fontIsAvailableAsVisualizerResource | ( | const char *const | fontName | ) |
Answers the question whether a given font is available as private resource of the visualizer.
| fontName | The name of the font. |
| VisualFontManager * VisualFontManager::getInstance | ( | void | ) | [static] |
Constructs a VisualFontManager. The VisualFontManager internally is a singleton. Returns a pointer to the initialized VisualFontManager.
| void VizKit::VisualFontManager::initCocoaFunctionPointers | ( | void | ) | [private] |
Sets the function pointers for the Cocoa function calls.
| VisualFontManager& VizKit::VisualFontManager::operator= | ( | const VisualFontManager & | other | ) | [private] |
Assignment operator.
| void VizKit::VisualFontManager::sortFontsByName | ( | void | ) |
Sorts the gathered fonts by name.
VisualFontManager * VisualFontManager::theVisualFontManager = NULL [static, private] |
VisualFontManager is a singleton class. Pointer to private instance is handled internally.