Text Klassenreferenz

#include <Text.h>

Aufstellung aller Elemente

Ö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


Ausführliche Beschreibung

Text-Objekt: Hat einen Text, eine Skalierung und eine Position (2d)


Beschreibung der Konstruktoren und Destruktoren

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


Dokumentation der Elementfunktionen

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


Dokumentation der Datenelemente

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


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Dateien:
Erzeugt am Sun Jun 10 13:47:54 2007 für Fishtank von  doxygen 1.5.2