#include <Text.h>
Öffentliche Methoden | |
Text (int x, int y, string text, float scale=1.0) | |
Text (string text, float scale=1.0) | |
void | setCoords (int x, int y) |
void | setEnabled (bool enabled) |
void | setText (string text) |
void | draw () |
virtual | ~Text () |
Öffentliche, statische Methoden | |
static void | drawAll () |
Private Attribute | |
int | x |
int | y |
string | text |
float | scale |
bool | enabled |
Statische private Attribute | |
static list< Text * > | texts |
Text::Text | ( | int | x, | |
int | y, | |||
string | text, | |||
float | scale = 1.0 | |||
) |
Konstruktor mit Koordinaten, Text und optionaler Skalierung
Text::Text | ( | string | text, | |
float | scale = 1.0 | |||
) |
Konstruktor mit Text und optionaler Skalierung
Text::~Text | ( | ) | [virtual] |
Default-Destruktor
void Text::setCoords | ( | int | x, | |
int | y | |||
) |
Koordinaten ändern
void Text::setEnabled | ( | bool | enabled | ) |
Darstellung an- oder abstellen
void Text::setText | ( | string | text | ) |
Text ändern
void Text::drawAll | ( | ) | [static] |
Alle Textobjekte Zeichnen
void Text::draw | ( | ) |
Nur ein Objekt zeichnen
int Text::x [private] |
X-Koordinate
int Text::y [private] |
Y-Koordinate
string Text::text [private] |
Anzuzeigender Text
float Text::scale [private] |
Skalierung (Schriftgröße)
bool Text::enabled [private] |
Zeit an, ob dieses Textobjekt gezeichnet werden soll oder nicht
list< Text * > Text::texts [static, private] |
Statische Liste aller Textobjekte