Text GUI element.
More...
#include <text.hpp>
Text GUI element.
Definition at line 37 of file text.hpp.
hx3d::gui::Text::Text |
( |
Ptr< Font > |
font | ) |
|
Create a text from a font.
- Parameters
-
Definition at line 37 of file text.cpp.
hx3d::gui::Text::Text |
( |
Widget * |
parent, |
|
|
Ptr< Font > |
font |
|
) |
| |
Create a text from a parent widget and a font.
- Parameters
-
parent | Widget (Ptr) |
font | Font (Ptr) |
Definition at line 40 of file text.cpp.
Draw the text following a function.
- Parameters
-
shader | Shader (Ptr) |
function | Function |
Definition at line 162 of file text.cpp.
int hx3d::gui::Text::getCharacterSize |
( |
| ) |
|
Get the character size.
- Returns
- Character size
Definition at line 74 of file text.cpp.
Ptr< Font > hx3d::gui::Text::getFont |
( |
| ) |
|
Get the text font.
- Returns
- Font (Ptr)
Definition at line 70 of file text.cpp.
float hx3d::gui::Text::getLength |
( |
| ) |
|
Get the text length.
- Returns
- Text length
Definition at line 78 of file text.cpp.
bool hx3d::gui::Text::isCenterAligned |
( |
| ) |
|
Is the text center aligned ?
- Returns
- True/False
Definition at line 86 of file text.cpp.
void hx3d::gui::Text::setCenterAlignment |
( |
bool |
value | ) |
|
Set the center alignment.
- Parameters
-
Definition at line 82 of file text.cpp.
void hx3d::gui::Text::setCharacterSize |
( |
int |
size | ) |
|
Set the character size.
- Parameters
-
Definition at line 60 of file text.cpp.
void hx3d::gui::Text::setContent |
( |
std::string |
content | ) |
|
Set the text content.
- Parameters
-
Definition at line 65 of file text.cpp.
void hx3d::gui::Text::setFont |
( |
Ptr< Font > |
font | ) |
|
Set the font.
- Parameters
-
Definition at line 54 of file text.cpp.
The documentation for this class was generated from the following files: