#include <sdlfontsurfaces.h>
Inheritance diagram for SdlFontSurfaces:
Public Member Functions | |
DECLSPEC | SdlFontSurfaces (const char *ttf_file, const char *letters, int ptsize, SDL_Color color, const char *name=0) |
Protected Member Functions | |
virtual DECLSPEC void | onRefresh () |
With this class you can create surfaces for the SdlFont-class by using a TrueTypeFont file.
SdlFontSurfaces::SdlFontSurfaces | ( | const char * | ttf_file, | |
const char * | letters, | |||
int | ptsize, | |||
SDL_Color | color, | |||
const char * | name = 0 | |||
) |
Constructor. Creates the surface container and draws the letters on the surfaces.
ttf_file | filename of the TrueTypeFont file | |
letters | the letters to write to the surfaces | |
ptsize | the size of the letters in points | |
color | the color, in which the font should be drawn | |
name | the name of the surface-container, see SdlSurfaceContainer::SdlSurfaceContainer() |
void SdlFontSurfaces::onRefresh | ( | ) | [protected, virtual] |
Refreshes all surfaces, by reloading the font. This is neccessary, when restoring an application in MS Windows
Reimplemented from SdlSurfaceContainer.