class GmInteractiveWidget

The interactive widget class is the base class for all widgets that will interact with the user

Inheritance:


Public Fields

[more]GmFocusEventHandler* focusEventHandler
The focus event handler processes all focus events
[more]GmKeyEventHandler* keyEventHandler
The key event handler processes all keyboard events
[more]GmAnimation* mFocusGainAnim
Description
[more]GmAnimation* mFocusLoseAnim
Description
[more]GmTypes::FocusType mFocusState
The focus state of this interactive widget
[more]unsigned int mFocusTimestamp
The time at which the last focus occurred.
[more]GmAnimation* mKeyPressAnim
Description
[more]GmAnimation* mKeyReleaseAnim
Description
[more]GmAnimation* mMouseExitAnim
Description
[more]GmAnimation* mMouseOverAnim
Description
[more]GmAnimation* mMousePressAnim
The animation that is played whenever the mouse is pressed on this interactive widget
[more]GmAnimation* mMouseReleaseAnim
Description
[more]WidgetIDType mWidgetId
The widget ID to use as this widget's unique identifier.
[more]GmToolTip* mWidgetToolTip
The tooltip that is associated with this interactive widget
[more]GmMouseEventHandler* mouseEventHandler
The mouse event handler processes all mouse events
[more]GmUserEventHandler* userEventHandler
The user event handler processes all user-defined events
[more]GmWidgetEventHandler* widgetEventHandler
The widget event handler processes all widget events

Public Methods

[more] GmInteractiveWidget ()
Standard constructor
[more]virtual void focusGainEvent (GmEvent* event)
Description
[more]virtual void focusLoseEvent (GmEvent* event)
Description
[more]virtual WidgetIDType getWidgetId ()
Gets the widget ID associated with this interactive widget.
[more]virtual void keyPressEvent (GmEvent* event)
Description
[more]virtual void keyReleaseEvent (GmEvent* event)
Description
[more]virtual void mouseDragEvent (GmEvent* event)
Event processing function to process a mouse drag event.
[more]virtual void mouseMoveEvent (GmEvent* event)
Description
[more]virtual void mousePressEvent (GmEvent* event)
Description
[more]virtual void mouseReleaseEvent (GmEvent* event)
Description
[more]virtual void setFocusEventHandler (GmFocusEventHandler* focusHandler, WidgetIDType widgetId)
Sets the focus event handler for this widget.
[more]virtual void setKeyEventHandler (GmKeyEventHandler* keyHandler, WidgetIDType widgetId)
Sets the key event handler for this widget.
[more]virtual void setMouseEventHandler (GmMouseEventHandler* mouseHandler, WidgetIDType widgetId)
Sets the mouse event handler for this widget.
[more]virtual void setToolTip (GmToolTip* tooltip)
Sets the widget tool tip for this interactive widget.
[more]virtual void setUserEventHandler (GmUserEventHandler* userHandler, WidgetIDType widgetId)
Sets the user event handler for this widget.
[more]virtual void setWidgetEventHandler (GmWidgetEventHandler* widgetHandler, WidgetIDType widgetId)
Sets the widget event handler for this widget.
[more]virtual void userEvent (GmEvent* event)
Description
[more]virtual void wheelMoveEvent (GmEvent* event)
Description
[more]virtual ~GmInteractiveWidget ()
Virtual destructor

Protected Methods

[more]virtual void render2dToolTip (GmTypes::RenderOptionType renderOptions)
This is a convenience method to render a tooltip if the given tooltip pop-up time has occurred


Inherited from GmAnimatedWidget:

Public Methods

ovirtual void animationFinished(GmTypes::AnimationType animationType)
ovirtual void applyAnimationTransforms()
ovirtual void setEventAnimation(GmTypes::AnimationType animType, GmAnimation* animation)

Protected Fields

oGmAnimation* mAppearAnimation
oGmTypes::AnimationType mCurrentAnimation
oGmAnimation* mIdleAnimation
oGmAnimation* mVanishAnimation


Inherited from GmDrawable:

Public Methods

ovirtual void applyLayout(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
ovirtual GlmColor4* getBaseColor()
ovirtual GmTypes::CoordinateType getCoordType()
ovirtual float getDepth()
ovirtual float getGlDepth()
ovirtual void getGlExtents(float& width, float& height)
ovirtual float getGlHeight()
ovirtual GlmPoint3* getGlPosition()
ovirtual float getGlWidth()
ovirtual float getHeight()
ovirtual void getMinimumGeometry(float& width, float& height, float& depth)
ovirtual GlmPoint3* getPosition()
ovirtual bool getVisible()
ovirtual float getWidth()
ovirtual void render(GmTypes::RenderOptionType renderOptions)
ovirtual void setAbsoluteGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setBaseColor(GlmColor4* color)
ovirtual void setBaseColor(float r, float g, float b, float a)
ovirtual void setCoordType(GmTypes::CoordinateType coordType)
ovirtual void setDepth(float depth)
ovirtual void setHeight(float height)
ovirtual void setPosition(GlmPoint3* point)
ovirtual void setPosition(float x, float y, float z)
ovirtual void setRelativeGeometry(float x, float y, float width, float height)
ovirtual void setRelativeGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setVisible(bool visible)
ovirtual void setWidth(float width)

Protected Fields

oGlmColor4 mBaseColor
oGmTypes::CoordinateType mCoordType
ofloat mDepth
obool mDisplayListGenerate
oint mDisplayListId
ofloat mGlDepth
ofloat mGlHeight
oGlmPoint3 mGlPosition
ofloat mGlWidth
ofloat mHeight
oGlmPoint3 mPosition
obool mVisible
ofloat mWidth

Protected Methods

ovirtual bool getDisplayListGenerate()
ovirtual int getDisplayListId()
ovirtual void render2d(GmTypes::RenderOptionType renderOptions)
ovirtual void render2dSelect(GmTypes::RenderOptionType renderOptions)
ovirtual void setDisplayListGenerate(bool generate)
ovirtual void setDisplayListId(int id)


Inherited from GmObject:

Public Methods

ounsigned short getObjectId()

Protected Fields

oThe object ID is used to uniquely identify each GmObject unsigned short mObjectId


Inherited from GmAnimationEventHandler:


Documentation

The interactive widget class is the base class for all widgets that will interact with the user
oGmAnimation* mMouseOverAnim
Description

oGmAnimation* mMouseExitAnim
Description

oGmAnimation* mMousePressAnim
The animation that is played whenever the mouse is pressed on this interactive widget

oGmAnimation* mMouseReleaseAnim
Description

oGmAnimation* mKeyPressAnim
Description

oGmAnimation* mKeyReleaseAnim
Description

oGmAnimation* mFocusGainAnim
Description

oGmAnimation* mFocusLoseAnim
Description

oGmMouseEventHandler* mouseEventHandler
The mouse event handler processes all mouse events

oGmKeyEventHandler* keyEventHandler
The key event handler processes all keyboard events

oGmFocusEventHandler* focusEventHandler
The focus event handler processes all focus events

oGmWidgetEventHandler* widgetEventHandler
The widget event handler processes all widget events

oGmUserEventHandler* userEventHandler
The user event handler processes all user-defined events

oWidgetIDType mWidgetId
The widget ID to use as this widget's unique identifier. This widget ID is used by the various event handlers for the widget to figure out which action to execute.

oGmTypes::FocusType mFocusState
The focus state of this interactive widget

ounsigned int mFocusTimestamp
The time at which the last focus occurred. This value is used to determine if a tooltip should be shown.

oGmToolTip* mWidgetToolTip
The tooltip that is associated with this interactive widget

o GmInteractiveWidget()
Standard constructor

ovirtual ~GmInteractiveWidget()
Virtual destructor

ovirtual void setToolTip(GmToolTip* tooltip)
Sets the widget tool tip for this interactive widget. If a user input device hovers over the interactive widget for more than a specified amount of time, a textual help message appears above the interactive widget.

Parameters:
tooltip - the tooltip widget to use as this items tooltip

ovirtual void setMouseEventHandler(GmMouseEventHandler* mouseHandler, WidgetIDType widgetId)
Sets the mouse event handler for this widget.

Parameters:
mouseHandler - the mouse handler that will be responsible for processing all mouse events sent to this widget.
widgetId - the widget ID uniquely identifies the widget so that the handler can perform the proper action for the widget.

ovirtual void setKeyEventHandler(GmKeyEventHandler* keyHandler, WidgetIDType widgetId)
Sets the key event handler for this widget.

Parameters:
keyHandler - the key handler that will be responsible for processing all key events sent to this widget.
widgetId - the widget ID uniquely identifies the widget so that the handler can perform the proper action for the widget.

ovirtual void setFocusEventHandler(GmFocusEventHandler* focusHandler, WidgetIDType widgetId)
Sets the focus event handler for this widget.

Parameters:
focusHandler - the focus handler that will be responsible for processing all focus events sent to this widget.
widgetId - the widget ID uniquely identifies the widget so that the handler can perform the proper action for the widget.

ovirtual void setWidgetEventHandler(GmWidgetEventHandler* widgetHandler, WidgetIDType widgetId)
Sets the widget event handler for this widget.

Parameters:
widgetHandler - the widget handler that will be responsible for processing all widget events sent to this widget.
widgetId - the widget ID uniquely identifies the widget so that the handler can perform the proper action for the widget.

ovirtual void setUserEventHandler(GmUserEventHandler* userHandler, WidgetIDType widgetId)
Sets the user event handler for this widget.

Parameters:
userHandler - the user handler that will be responsible for processing all user events sent to this widget.
widgetId - the widget ID uniquely identifies the widget so that the handler can perform the proper action for the widget.

ovirtual WidgetIDType getWidgetId()
Gets the widget ID associated with this interactive widget.

Returns:
the widget ID that is associated with this widget

ovirtual void mousePressEvent(GmEvent* event)
Description

ovirtual void mouseReleaseEvent(GmEvent* event)
Description

ovirtual void mouseMoveEvent(GmEvent* event)
Description

ovirtual void mouseDragEvent(GmEvent* event)
Event processing function to process a mouse drag event.

Parameters:
event - the mouse drag event for this object to process

ovirtual void wheelMoveEvent(GmEvent* event)
Description

ovirtual void keyPressEvent(GmEvent* event)
Description

ovirtual void keyReleaseEvent(GmEvent* event)
Description

ovirtual void focusGainEvent(GmEvent* event)
Description

ovirtual void focusLoseEvent(GmEvent* event)
Description

ovirtual void userEvent(GmEvent* event)
Description

ovirtual void render2dToolTip(GmTypes::RenderOptionType renderOptions)
This is a convenience method to render a tooltip if the given tooltip pop-up time has occurred


Direct child classes:
GmTextWidget
GmSpinBox
GmRangeWidget
GmHyperlink
GmExpandableListItem
GmContainer
GmButton

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.