#include <Label.h>

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 () |
| Font & | getFont () |
| GLfloat & | getSize () |
| Color & | getColor () |
| 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. | |
| 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
| 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.
Reimplemented from Object2d.
Reimplemented in FpsCounter, HudScore, IdPicker, SplashMessage, and StartUpTimer.
| string Label::className | ( | ) | const [virtual] |
Returns the class name of the object.
Reimplemented from Object2d.
Reimplemented in FpsCounter, HudScore, IdPicker, SplashMessage, and StartUpTimer.
| enum classId Label::classId | ( | ) | const [virtual] |
Returns the class id of the object.
Reimplemented from Object2d.
Reimplemented in FpsCounter, HudScore, IdPicker, SplashMessage, and StartUpTimer.
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.
1.5.6