GUIText Class Reference

GUI element that displays static text. More...

#include <GUI/GUIText.h>

Inherits GUIPanel.

List of all members.

Public Member Functions

 GUIText ()
 Constructor.
virtual ~GUIText ()
 Deconstructor.
void SetFont (FontRef f)
 Sets the font to use when drawing text.
void SetColor (const Color4f &c)
 Sets the color to use when drawing text.
void SetText (const char *str)
 Sets the GUI elements text to display.
void SetText (const std::string &str)
 Sets the GUI elements text to display.
virtual const char * GetPanelTypeName () const
 Gets the string type identifier for the GUI element.

Protected Member Functions

virtual void Paint ()
 Does the actual rendering of the GUI element.
virtual void RecomputeLayout ()
 Recomputes the bounds and layout for the panel. Called by the Refit() method.

Detailed Description

GUI element that displays static text.


Member Function Documentation

virtual const char* GUIText::GetPanelTypeName (  )  const [inline, virtual]

Gets the string type identifier for the GUI element.

Returns:
The string type identifier.

Reimplemented from GUIPanel.

void GUIText::SetColor ( const Color4f c  )  [inline]

Sets the color to use when drawing text.

Parameters:
[in] c the color.
void GUIText::SetFont ( FontRef  f  ) 

Sets the font to use when drawing text.

Parameters:
[in] f the referance to the font.
void GUIText::SetText ( const std::string &  str  ) 

Sets the GUI elements text to display.

Parameters:
[in] str the string.
void GUIText::SetText ( const char *  str  ) 

Sets the GUI elements text to display.

Parameters:
[in] str the string.

The documentation for this class was generated from the following files:
Generated on Mon Apr 5 19:08:05 2010 for BrickOut |ReDuX| by  doxygen 1.6.3