65 Label(
unsigned int x,
unsigned int y,
unsigned int width,
66 unsigned int height,
const char* label)
67 :
Widget(x, y, width, height, label), m_labelText(NULL),
95 void setFont(
const char* file) { m_font = file; }
OText * m_labelText
Definition: Label.h:58
Label(unsigned int x, unsigned int y, unsigned int width, unsigned int height, const char *label)
Definition: Label.h:65
void draw()
Draws the widget to the canvas it belongs to.
Definition: Label.h:108
void setAlignment(int mode)
Changes the text alignment.
Definition: Label.h:79
TEXT_ALIGN_MODES m_alignment
Definition: Label.h:59
Implements a framework for string manipulation that operates directly on C strings.
Definition: NeoString.h:35
The Label class displays a string on the screen.
Definition: Label.h:55
void setFont(const char *file)
Changes the font used to display text.
Definition: Label.h:95
TEXT_ALIGN_MODES
Definition: OText.h:32
String m_font
Definition: Label.h:60
const char * getSafeString(void)
Returns the C string. This method is ensured to return a valid C string and never NULL...
Vector4 getColor()
Definition: Label.h:104
void setColor(Vector4 color)
Definition: Label.h:105
const char * getFont()
Returns the path to the currently used font file.
Definition: Label.h:102
Vector4 m_color
Definition: Label.h:62
TEXT_ALIGN_MODES getAlignment()
Returns the current align mode.
Definition: Label.h:86