GUI element that displays static text. More...
#include <GUI/GUIText.h>
Inherits GUIPanel.
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. | |
GUI element that displays static text.
| virtual const char* GUIText::GetPanelTypeName | ( | ) | const [inline, virtual] |
Gets the string type identifier for the GUI element.
Reimplemented from GUIPanel.
| void GUIText::SetColor | ( | const Color4f & | c | ) | [inline] |
Sets the color to use when drawing text.
| [in] | c | the color. |
| void GUIText::SetFont | ( | FontRef | f | ) |
Sets the font to use when drawing text.
| [in] | f | the referance to the font. |
| void GUIText::SetText | ( | const std::string & | str | ) |
Sets the GUI elements text to display.
| [in] | str | the string. |
| void GUIText::SetText | ( | const char * | str | ) |
Sets the GUI elements text to display.
| [in] | str | the string. |
1.6.3