Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

Font Class Reference

#include <Font.h>

Inheritance diagram for Font:

FontGl List of all members.

Public Member Functions

virtual ~Font ()
virtual void prepareDrawing ()=0
virtual void printChar (const char data, float x, float y, float zoom)=0
virtual void printString (const string &value, float x, float y, float zoom)=0
virtual float getWidth (const string &data, float zoom)=0
virtual float getHeight (float zoom)=0

Detailed Description

An interface defining the methods that can be used on a Font.

Definition at line 16 of file Font.h.


Constructor & Destructor Documentation

virtual Font::~Font  )  [inline, virtual]
 

Destructor.

Definition at line 20 of file Font.h.


Member Function Documentation

virtual float Font::getHeight float  zoom  )  [pure virtual]
 

Returns the height of the font at zoom factor zoom.

Implemented in FontGl.

virtual float Font::getWidth const string &  data,
float  zoom
[pure virtual]
 

Returns the width of a string data at zoom factor zoom.

Implemented in FontGl.

virtual void Font::prepareDrawing  )  [pure virtual]
 

Prepares the display for drawing of letters, you may have to prepare the display for drawing other things after this cal.

Implemented in FontGl.

virtual void Font::printChar const char  data,
float  x,
float  y,
float  zoom
[pure virtual]
 

Writes a character data at x,y with the given zoom factor. prepareDrawing must have been called first.

Implemented in FontGl.

virtual void Font::printString const string &  value,
float  x,
float  y,
float  zoom
[pure virtual]
 

Writes a string value at x,y with the given zoom factor. prepareDrawing must have been called first.

Implemented in FontGl.


The documentation for this class was generated from the following file:
Generated on Wed Sep 1 14:46:57 2004 by doxygen 1.3.7