class GmToolTip

The tool tip class is used by most interactive widgets to display more information on what the interactive widget does

Inheritance:


Public Methods

[more] GmToolTip ()
Standard constructor
[more]void getGlExtents (float& width, float& height)
Gets the ideal extents of the text widget in OpenGL units.
[more]virtual char* getText ()
Gets the text that is currently associated with this widget
[more]GlmColor4* getTextColor ()
Gets the text color that is currently assigned to the text.
[more]float getTextPointSize ()
Gets the size of the text in points.
[more]virtual void setText (char* text)
Sets the text of this text widget to the given text.
[more]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.
[more]void setTextColor (GlmColor4* color)
Sets the display color of the text.
[more]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.
[more]virtual ~GmToolTip ()
Virtual destructor

Protected Fields

[more]OGLFT::Face* mFontFace
The font face to use when rendering the text for this button
[more]char* mText
The text string that this widget should display
[more]GlmColor4 mTextColor
The foreground color to use when drawing the text
[more]float mTextPointSize
The point size to use when drawing the text

Protected Methods

[more]virtual void render2d (GmTypes::RenderOptionType renderOptions)
Renders this label to a 2D image buffer.


Inherited from GmDecorator:


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 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 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 tool tip class is used by most interactive widgets to display more information on what the interactive widget does
ochar* mText
The text string that this widget should display

oOGLFT::Face* mFontFace
The font face to use when rendering the text for this button

oGlmColor4 mTextColor
The foreground color to use when drawing the text

ofloat mTextPointSize
The point size to use when drawing the text

o GmToolTip()
Standard constructor

ovirtual ~GmToolTip()
Virtual destructor

ovirtual void setText(char* text)
Sets the text of this text widget to the given text.

Parameters:
text - the text to set this widget to display

ovirtual char* getText()
Gets the text that is currently associated with this widget

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

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

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

ovoid 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.

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* getTextColor()
Gets the text color that is currently assigned to the text.

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

ovoid 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.

Parameters:
pointSize - the size of the text in points

ofloat getTextPointSize()
Gets the size of the text in points.

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

ovoid getGlExtents(float& width, float& height)
Gets the ideal extents of the text widget in OpenGL units. This is sometimes used by parent containers to determine the optimal layout strategy by taking each components extents into account.

Parameters:
width - the width of the text widget in OpenGL units
height - the height of the text widget in OpenGL units

ovirtual void render2d(GmTypes::RenderOptionType renderOptions)
Renders this label to a 2D image buffer.

Parameters:
renderOptions - the render options to use when rendering the label.


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



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