class GmButton |
Class description
GmButton () Standard constructor | |
virtual void | applyLayout (float minX, float minY, float minZ, float maxX, float maxY, float maxZ) Repositions and resizes this component based on parameters passed into the method. |
virtual float | getBorderWidth () Gets the width of the border around the button. |
virtual GmTypes::ButtonStateType | getState () Gets the state of the button. |
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. |
virtual void | mousePressEvent (GmEvent* event) Event processing function to process a mouse press event. |
virtual void | mouseReleaseEvent (GmEvent* event) Event processing function to process a mouse release event. |
virtual void | setAbsoluteGeometry (float x, float y, float z, float width, float height, float depth) Sets the absolute geometry to use for this drawable object. |
virtual void | setBorderWidth (float borderWidth) Sets the width of the border around the button. |
virtual void | setCoordType (GmTypes::CoordinateType coordType) Sets the coordinate type for this object. |
virtual void | setDepth (float depth) Sets the depth of the drawable object in units. |
virtual void | setHeight (float height) Sets the height of the drawable object in units. |
virtual void | setPosition (float x, float y, float z) Sets the position of the drawable. |
virtual void | setPosition (GlmPoint3* point) Sets the position of the drawable. |
virtual void | setRelativeGeometry (float x, float y, float width, float height) Sets the relative geometry to use for this drawable object. |
virtual void | setRelativeGeometry (float x, float y, float z, float width, float height, float depth) Sets the relative geometry to use for this drawable object. |
virtual void | setState (GmTypes::ButtonStateType state) Sets the state of the button. |
virtual void | setText (char* text) Sets the text of this text widget to the given 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 | setTextColor (GlmColor4* color) Sets the display color of the text. |
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 void | setVisible (bool visible) Sets the visibility of the drawable object. |
virtual void | setWidth (float width) Sets the width of the drawable object in units. |
virtual | ~GmButton () Virtual destructor |
float | mBorderWidth The width of the border around the button |
GmTypes::ButtonStateType | mState The state of the button. |
GmTextWidget* | mTextWidget Some text for labeling the button |
Class description
Alphabetic index HTML hierarchy of classes or Java