class GmTextWidget |
A GmTextWidget object is used to display text to the screen in some form or another.
GmTextWidget () Standard constructor | |
void | getGlExtents (float& width, float& height) Gets the ideal extents of the text widget in OpenGL units. |
void | getOffset (float& xOffset, float& yOffset) Gets the X and Y offset for the final drawn text. |
virtual char* | getText () Gets the text that is currently associated with this widget |
GlmColor4* | getTextColor () Gets the text color that is currently assigned to the text. |
void | getTextJustification (GmTypes::JustificationType& horizontal, GmTypes::JustificationType& vertical) Gets the type of justification for the text in this widget. |
float | getTextPointSize () Gets the size of the text in points. |
void | setOffset (float xOffset, float yOffset) Sets an X and Y offset for the final drawn text. |
virtual void | setText (char* text) Sets the text of this text widget to the given text. |
void | setTextColor (GlmColor4* color) Sets the display color of the text. |
void | setTextColor (float r, float g, float b, float a) Sets the display color of the text to the given red, green, blue and alpha values. |
void | setTextJustification (GmTypes::JustificationType horizontal, GmTypes::JustificationType vertical) Sets the horizontal and vertical text justification for the widget text. |
void | setTextPointSize (float pointSize) Sets the point size of the text, this will affect the size at which the font is rendered for the text string. |
virtual | ~GmTextWidget () Virtual destructor |
OGLFT::Face* | mFontFace The font face to use when rendering the text for this button |
char* | mText The text string that this widget should display |
GlmColor4 | mTextColor The foreground color to use when drawing the text |
GmTypes::JustificationType | mTextHJustification The horizontal justification to use when drawing the text |
float | mTextPointSize The point size to use when drawing the text |
GmTypes::JustificationType | mTextVJustification The vertical justification to use when drawing the text |
float | mXOffset Allows a subclass to offset the final drawn x position |
float | mYOffset Allows a subclass to offset the final drawn y position |
A GmTextWidget object is used to display text to the screen in some form or another. TextWidget objects could be buttons, menu items, text fields, text labels, etc.
Alphabetic index HTML hierarchy of classes or Java