SdlFontSurfaces Class Reference
[SDL based classes]

Creates surfaces for SdlFont out of a ttf-file. More...

#include <sdlfontsurfaces.h>

Inheritance diagram for SdlFontSurfaces:

Inheritance graph
[legend]
Collaboration diagram for SdlFontSurfaces:

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

Creates surfaces for SdlFont out of a ttf-file.

With this class you can create surfaces for the SdlFont-class by using a TrueTypeFont file.

See also:
SdlFont


Constructor & Destructor Documentation

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.

Parameters:
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()


Member Function Documentation

void SdlFontSurfaces::onRefresh (  )  [protected, virtual]

Refreshes all surfaces, by reloading the font. This is neccessary, when restoring an application in MS Windows

Todo:
test this (I think it does not function yet) and make it working.

Reimplemented from SdlSurfaceContainer.


The documentation for this class was generated from the following files:
Generated on Wed May 9 17:36:33 2007 for netrinjo by  doxygen 1.5.1