Back to bsyte

TextMapper Class Reference

TextMapper Klasse. More...

#include <TextMapper.h>

Collaboration diagram for TextMapper:

List of all members.

Public Member Functions

virtual ~TextMapper ()
 Destruktor.
void drawText (BYTE *pane, Text::TEXTLINE *textLine)
 Zeichnet einen Text auf die Canvas.
void drawText (BYTE *pane, char *text, int startX, int startY)
 Zeichnet einen Text auf die Canvas.
void load (DataInputStream &dataIn)
 Liest das Charset-Objekt aus dem Inputstream.
void save (DataOutputStream &dataOut)
 Serialisert das Charset-Objekt in den Outputstream.

Static Public Member Functions

static TextMappergetInstance ()
 Liefert die Singleton-Instanz.

Protected Member Functions

 TextMapper ()
 Konstruktor.

Private Attributes

Texture m_texture
int m_charWidth
int m_charHeight
int m_linespace
int m_charAscent
int m_charDescent

Static Private Attributes

static TextMapper_instance = 0

Detailed Description

TextMapper Klasse.


Constructor & Destructor Documentation

TextMapper::TextMapper ( ) [protected]

Konstruktor.

Here is the caller graph for this function:

TextMapper::~TextMapper ( ) [virtual]

Destruktor.


Member Function Documentation

void TextMapper::drawText ( BYTE *  pane,
Text::TEXTLINE textLine 
)

Zeichnet einen Text auf die Canvas.

Parameters:
panePointer auf die Canvas
textLineReferenz auf ein Textobjekt

Here is the caller graph for this function:

void TextMapper::drawText ( BYTE *  pane,
char *  text,
int  startX,
int  startY 
)

Zeichnet einen Text auf die Canvas.

Parameters:
panePointer auf die Canvas
textDer zu zeichnende Text
startXX-Koordinate an die der Text gezeichnet werden soll
startYY-Koordinate an die der Text gezeichnet werden soll

Here is the call graph for this function:

TextMapper * TextMapper::getInstance ( ) [static]

Liefert die Singleton-Instanz.

Returns:
Pointer auf die Instanz

Here is the call graph for this function:

void TextMapper::load ( DataInputStream dataIn)

Liest das Charset-Objekt aus dem Inputstream.

Parameters:
dataInDataInputStream

Here is the call graph for this function:

Here is the caller graph for this function:

void TextMapper::save ( DataOutputStream dataOut)

Serialisert das Charset-Objekt in den Outputstream.

Parameters:
dataOutDataOutputStream
Exceptions:
IOException

Here is the call graph for this function:


Member Data Documentation

TextMapper * TextMapper::_instance = 0 [static, private]
int TextMapper::m_charAscent [private]
int TextMapper::m_charHeight [private]
int TextMapper::m_charWidth [private]
int TextMapper::m_linespace [private]

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