Class representing a text wrapper for sf::Text with basic functionality.
More...
#include <SfmlTypes.hpp>
Class representing a text wrapper for sf::Text with basic functionality.
◆ Text()
GameEngine::Text::Text |
( |
| ) |
|
|
inline |
Default constructor for Text.
◆ ~Text()
GameEngine::Text::~Text |
( |
| ) |
|
|
default |
◆ getLocalBounds()
Rectf GameEngine::Text::getLocalBounds |
( |
| ) |
const |
|
inline |
◆ getText()
const sf::Text& GameEngine::Text::getText |
( |
| ) |
const |
|
inline |
Returns the wrapped sf::Text.
- Returns
- Reference to the sf::Text instance
◆ load()
void GameEngine::Text::load |
( |
const std::string & |
text, |
|
|
const sf::Font & |
font, |
|
|
size_t |
size |
|
) |
| |
|
inline |
Loads text with specified font and size.
- Parameters
-
text | The string to set for the text |
font | The font to apply to the text |
size | The character size of the text |
◆ setPosition()
void GameEngine::Text::setPosition |
( |
const Vector2< float > & |
position | ) |
|
|
inline |
◆ setString()
void GameEngine::Text::setString |
( |
const std::string & |
string | ) |
|
|
inline |
The documentation for this class was generated from the following file: