TextMapper Klasse. More...
#include <TextMapper.h>
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 TextMapper * | getInstance () |
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 |
TextMapper Klasse.
TextMapper::TextMapper | ( | ) | [protected] |
Konstruktor.
TextMapper::~TextMapper | ( | ) | [virtual] |
Destruktor.
void TextMapper::drawText | ( | BYTE * | pane, |
Text::TEXTLINE * | textLine | ||
) |
Zeichnet einen Text auf die Canvas.
pane | Pointer auf die Canvas |
textLine | Referenz auf ein Textobjekt |
void TextMapper::drawText | ( | BYTE * | pane, |
char * | text, | ||
int | startX, | ||
int | startY | ||
) |
TextMapper * TextMapper::getInstance | ( | ) | [static] |
Liefert die Singleton-Instanz.
void TextMapper::load | ( | DataInputStream & | dataIn | ) |
Liest das Charset-Objekt aus dem Inputstream.
dataIn | DataInputStream |
void TextMapper::save | ( | DataOutputStream & | dataOut | ) |
Serialisert das Charset-Objekt in den Outputstream.
dataOut | DataOutputStream |
IOException |
TextMapper * TextMapper::_instance = 0 [static, private] |
int TextMapper::m_charAscent [private] |
int TextMapper::m_charDescent [private] |
int TextMapper::m_charHeight [private] |
int TextMapper::m_charWidth [private] |
int TextMapper::m_linespace [private] |
Texture TextMapper::m_texture [private] |