Solo Controller Documentation 1.0
Documentation for the Solo Controller
 
Loading...
Searching...
No Matches
FontList Class Reference

Defines the FontList class that manages all fonts used by the application. More...

#include <FontList.h>

Public Types

enum  FontID {
  Red180 , White90 , Red64 , Blue64 ,
  White64 , White32
}
 Enumeration listing available fonts. More...
 

Public Member Functions

GrFontget (FontID id)
 Returns a pointer to the requested graphical font.
 

Static Public Member Functions

static FontListgetInstance (void)
 Returns pointer to the single FontList object.
 

Detailed Description

Defines the FontList class that manages all fonts used by the application.

Each instantiation of a graphical fonts, requires a fair amount of DRAM. To avoid creating fonts multiple times (unnecessarily using DRAM resources), this class was created to instantiate and provide access to the font data. Note that this is a Singleton class. Therefore, only one instance of this class can be created.

Member Enumeration Documentation

◆ FontID

Enumeration listing available fonts.

Enumerator
Red180 

Red monospace font of size 180.

White90 

White monospace font of size 90.

Red64 

Red monospace font of size 64.

Blue64 

Blue monospace font of size 64.

White64 

White monospace font of size 64.

White32 

White monospace font of size 32.

Member Function Documentation

◆ get()

GrFont * FontList::get ( FontID id)
inline

Returns a pointer to the requested graphical font.

Parameters
[in]idIdentifier of the requested font
Returns
Pointer to the requested graphical font.

◆ getInstance()

FontList * FontList::getInstance ( void )
static

Returns pointer to the single FontList object.

Returns
Pointer to the FontList object

The documentation for this class was generated from the following files: