#include <Text.h>
Definition at line 8 of file Text.h.
◆ Text()
tl::Text::Text |
( |
String | str = "", |
|
|
u32 | fontSize = 12, |
|
|
Vec2i | pos = {0, 0} ) |
Create a new text that can be drawn to screen.
- Parameters
-
str | What the text displays. |
fontSize | How big text is. |
pos | Where text is. |
The defaults for each parameter, no string data, fonst size 12, position (0, 0).
Definition at line 13 of file Text.cpp.
◆ ~Text()
Clean up string data.
Definition at line 22 of file Text.cpp.
◆ getString()
String tl::Text::getString |
( |
| ) |
const |
Get the string data from this text.
- Returns
- Internal string.
Definition at line 37 of file Text.cpp.
◆ setFontSize()
void tl::Text::setFontSize |
( |
s32 | size | ) |
|
Set the font size for this text.
- Parameters
-
I might change how font size scales later on, it doesn't seem to be accurate based on pixels when using GDI/DirectX.
Definition at line 48 of file Text.cpp.
◆ setString()
void tl::Text::setString |
( |
String | str | ) |
|
Set the string data.
- Parameters
-
Definition at line 29 of file Text.cpp.
The documentation for this class was generated from the following files: