class GmDialog

The GmDialog is a container that represents a dialog with the user.

Inheritance:


Public Methods

[more] GmDialog ()
Standard constructor
[more]virtual char* getTitleText ()
Gets the title text that is currently associated with this dialog.
[more]GlmColor4* getTitleTextColor ()
Gets the color that is currently assigned to the title text.
[more]void getTitleTextJustification (GmTypes::JustificationType& horizontal, GmTypes::JustificationType& vertical)
Gets the type of justification for the title text of the dialog
[more]float getTitleTextPointSize ()
Gets the size of the title text in points.
[more]virtual GlmColor4* getTitlebarColor ()
Gets the color of the dailog's titlebar.
[more]virtual void setTitleText (char* titleText)
Sets the title text of this dialog to the given text.
[more]void setTitleTextColor (GlmColor4* color)
Sets the display color of the title text.
[more]void setTitleTextColor (float r, float g, float b, float a)
Sets the display color of the title text to the given red, green, blue and alpha values.
[more]void setTitleTextJustification (GmTypes::JustificationType horizontal, GmTypes::JustificationType vertical)
Sets the horizontal and vertical title text justification for the dialog.
[more]void setTitleTextPointSize (float pointSize)
Sets the point size of the title text, this will affect the size at which the font is rendered for the text string.
[more]virtual void setTitlebarColor (float r, float g, float b, float a)
Sets the color of the dialog's titlebar.
[more]virtual ~GmDialog ()
Virtual destructor

Protected Fields

[more]GmTextWidget* mTitleTextWidget
Some text for labeling the title bar of the dialog
[more]GlmColor4 mTitlebarColor
The color of the titlebar


Inherited from GmContainer:

Public Methods

ovirtual void addComponent(GmDrawable* component)
ovirtual void applyLayout(float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
ovirtual int findComponent(float x, float y)
oGmLayoutManager* getLayout()
ovoid setLayout(GmLayoutManager* layoutManager)

Protected Fields

ovector<GmDrawable*> mComponents
oGmLayoutManager* mLayoutManager

Protected Methods

ovirtual void applyLayout()
ovirtual void render2d(GmTypes::RenderOptionType renderOptions)
ovirtual void render2dSelect(GmTypes::RenderOptionType renderOptions)


Inherited from GmInteractiveWidget:

Public Fields

oGmFocusEventHandler* focusEventHandler
oGmKeyEventHandler* keyEventHandler
oGmAnimation* mFocusGainAnim
oGmAnimation* mFocusLoseAnim
oGmTypes::FocusType mFocusState
ounsigned int mFocusTimestamp
oGmAnimation* mKeyPressAnim
oGmAnimation* mKeyReleaseAnim
oGmAnimation* mMouseExitAnim
oGmAnimation* mMouseOverAnim
oGmAnimation* mMousePressAnim
oGmAnimation* mMouseReleaseAnim
oWidgetIDType mWidgetId
oGmToolTip* mWidgetToolTip
oGmMouseEventHandler* mouseEventHandler
oGmUserEventHandler* userEventHandler
oGmWidgetEventHandler* widgetEventHandler

Public Methods

ovirtual void focusGainEvent(GmEvent* event)
ovirtual void focusLoseEvent(GmEvent* event)
ovirtual WidgetIDType getWidgetId()
ovirtual void keyPressEvent(GmEvent* event)
ovirtual void keyReleaseEvent(GmEvent* event)
ovirtual void mouseDragEvent(GmEvent* event)
ovirtual void mouseMoveEvent(GmEvent* event)
ovirtual void mousePressEvent(GmEvent* event)
ovirtual void mouseReleaseEvent(GmEvent* event)
ovirtual void setFocusEventHandler(GmFocusEventHandler* focusHandler, WidgetIDType widgetId)
ovirtual void setKeyEventHandler(GmKeyEventHandler* keyHandler, WidgetIDType widgetId)
ovirtual void setMouseEventHandler(GmMouseEventHandler* mouseHandler, WidgetIDType widgetId)
ovirtual void setToolTip(GmToolTip* tooltip)
ovirtual void setUserEventHandler(GmUserEventHandler* userHandler, WidgetIDType widgetId)
ovirtual void setWidgetEventHandler(GmWidgetEventHandler* widgetHandler, WidgetIDType widgetId)
ovirtual void userEvent(GmEvent* event)
ovirtual void wheelMoveEvent(GmEvent* event)

Protected Methods

ovirtual void render2dToolTip(GmTypes::RenderOptionType renderOptions)


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 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(float x, float y, float z)
ovirtual void setPosition(GlmPoint3* point)
ovirtual void setRelativeGeometry(float x, float y, float z, float width, float height, float depth)
ovirtual void setRelativeGeometry(float x, float y, float width, float height)
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 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 GmDialog is a container that represents a dialog with the user. Things such as file selection, pop-up, progress meter, and the like would use a GmDialog as their base class.
oGmTextWidget* mTitleTextWidget
Some text for labeling the title bar of the dialog

oGlmColor4 mTitlebarColor
The color of the titlebar

o GmDialog()
Standard constructor

ovirtual ~GmDialog()
Virtual destructor

ovirtual void setTitlebarColor(float r, float g, float b, float a)
Sets the color of the dialog's titlebar.

Parameters:
r - the red component of the color
g - the green component of the color
b - the blue component of the color
a - the alpha component of the color

ovirtual GlmColor4* getTitlebarColor()
Gets the color of the dailog's titlebar.

Returns:
the title text color as a GlmColor4 object, THIS IS A BORROWED POINTER, DO NOT DELETE IT!

ovirtual void setTitleText(char* titleText)
Sets the title text of this dialog to the given text.

Parameters:
text - the title text to set as this dialog's title bar

ovirtual char* getTitleText()
Gets the title text that is currently associated with this dialog.

Returns:
s a pointer to the text that this widget is set to display. THIS IS A BORROWED POINTER, DO NOT DELETE IT!

ovoid setTitleTextColor(GlmColor4* color)
Sets the display color of the title text.

Parameters:
color - the color to set as the title text color

ovoid setTitleTextColor(float r, float g, float b, float a)
Sets the display color of the title text to the given red, green, blue and alpha values.

Parameters:
r - the red component of the color
g - the green component of the color
b - the blue component of the color
a - the alpha component of the color

oGlmColor4* getTitleTextColor()
Gets the color that is currently assigned to the title text.

Returns:
the title text color as a GlmColor4 object, THIS IS A BORROWED REFERENCE, DO NOT DELETE IT!

ovoid setTitleTextPointSize(float pointSize)
Sets the point size of the title text, this will affect the size at which the font is rendered for the text string.

Parameters:
pointSize - the size of the title text in points

ofloat getTitleTextPointSize()
Gets the size of the title text in points.

Returns:
the point size of the title text that is to be rendered by this widget.

ovoid setTitleTextJustification(GmTypes::JustificationType horizontal, GmTypes::JustificationType vertical)
Sets the horizontal and vertical title text justification for the dialog.

Parameters:
horizontal - the horizontal justification to use for the title text
vertical - the vertical justification to use for the title text

ovoid getTitleTextJustification(GmTypes::JustificationType& horizontal, GmTypes::JustificationType& vertical)
Gets the type of justification for the title text of the dialog

Parameters:
horizontal - the horizontal text justification for the title text
vertical - the vertical text justification for the title text


Direct child classes:
GmProgressDialog

Alphabetic index HTML hierarchy of classes or Java



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