Text Object.
More...
#include <game.h>
|
| asw::Quad< float > | transform |
| | The transform of the object.
|
| |
| float | rotation { 0.0F } |
| | The rotation of the object in radians.
|
| |
| int | z_index { 0 } |
| | The layer that the object is on.
|
| |
| bool | active { true } |
| | Whether or not the object is active.
|
| |
| float | alpha { 1.0F } |
| | Opacity of the object.
|
| |
| Physics | body |
| | Physics body of the object.
|
| |
| bool | alive { true } |
| | Alive state.
|
| |
Text Object.
Definition at line 159 of file game.h.
◆ draw()
| void asw::game::Text::draw |
( |
| ) |
|
|
inlineoverridevirtual |
◆ set_color()
| void asw::game::Text::set_color |
( |
const asw::Color & | color | ) |
|
|
inline |
Set the color of the text.
- Parameters
-
Definition at line 183 of file game.h.
◆ set_font()
| void asw::game::Text::set_font |
( |
const asw::Font & | font | ) |
|
|
inline |
Set the font of the text.
- Parameters
-
Definition at line 165 of file game.h.
◆ set_justify()
Set the justification of the text.
- Parameters
-
| justify | The justification to set. |
Definition at line 192 of file game.h.
◆ set_text()
| void asw::game::Text::set_text |
( |
const std::string_view & | text | ) |
|
|
inline |
Set the text of the text object.
- Parameters
-
Definition at line 174 of file game.h.
◆ color_
◆ font_
◆ justify_
◆ text_
| std::string asw::game::Text::text_ |
|
private |
The documentation for this class was generated from the following file: