Label Class Reference

#include <Label.h>

Inheritance diagram for Label:

Object2d ViewObject Object FpsCounter HudScore IdPicker SplashMessage StartUpTimer

List of all members.

Public Member Functions

 Label ()
 Label (const string &fontname, const string &text, const GLfloat &size, const Color &color)
 ~Label ()
void renderGl ()
 The rendering function to be used with OpenGL.
void selectGl ()
 The selection mode rendering function for OpenGL.
float getLength ()
void setText (const string &text)
void setFont (const Font &font)
void setSize (const GLfloat &size)
void setColor (const Color &color)
string & getText ()
FontgetFont ()
GLfloat & getSize ()
ColorgetColor ()
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.

Protected Attributes

string text
 The text to display as gui label.

Private Attributes

Font font
 The Font to be used.
GLfloat size
 The height of the label (= size of the font).
Color color
 The text color.


Constructor & Destructor Documentation

Label::Label (  ) 

The Standard Constructor

Label::Label ( const string &  fontname,
const string &  text,
const GLfloat &  size,
const Color color 
)

The Constructor for Initialization by value

Label::~Label (  ) 

The Destructor


Member Function Documentation

void Label::renderGl (  )  [virtual]

The rendering function to be used with OpenGL.

Implements Object2d.

Reimplemented in FpsCounter, HudScore, SplashMessage, and StartUpTimer.

void Label::selectGl (  )  [virtual]

The selection mode rendering function for OpenGL.

Implements Object2d.

Reimplemented in HudScore, and SplashMessage.

float Label::getLength (  ) 

void Label::setText ( const string &  text  ) 

Reimplemented in SplashMessage.

void Label::setFont ( const Font font  ) 

void Label::setSize ( const GLfloat &  size  ) 

void Label::setColor ( const Color color  ) 

string & Label::getText (  ) 

Font & Label::getFont (  ) 

GLfloat & Label::getSize (  ) 

Color & Label::getColor (  ) 

string Label::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object2d.

Reimplemented in FpsCounter, HudScore, IdPicker, SplashMessage, and StartUpTimer.

string Label::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Object2d.

Reimplemented in FpsCounter, HudScore, IdPicker, SplashMessage, and StartUpTimer.

enum classId Label::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object2d.

Reimplemented in FpsCounter, HudScore, IdPicker, SplashMessage, and StartUpTimer.


Member Data Documentation

Font Label::font [private]

The Font to be used.

GLfloat Label::size [private]

The height of the label (= size of the font).

Color Label::color [private]

The text color.

string Label::text [protected]

The text to display as gui label.


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

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6