Sfml Text class - references a SfmlFont, does not own it. Deleting the text never touches the font.
More...
#include <SfmlText.hpp>
Sfml Text class - references a SfmlFont, does not own it. Deleting the text never touches the font.
◆ SfmlText()
| SfmlText::SfmlText |
( |
std::string | data, |
|
|
SfmlFont & | font ) |
|
inline |
◆ ~SfmlText()
◆ getFontSize()
| unsigned int SfmlText::getFontSize |
( |
| ) |
const |
|
inlineoverridevirtual |
Get the Font Size text.
- Returns
- unsigned int
Implements graphic::IText.
◆ getPosition()
| Vector2f SfmlText::getPosition |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getRotation()
| float SfmlText::getRotation |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getText()
| std::string SfmlText::getText |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ getTextColor()
| Color SfmlText::getTextColor |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ isReady()
| bool SfmlText::isReady |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ setFont()
Set the Font value - a loaded IFont, not a path, so changing font never implies a reload from disk.
- Parameters
-
Implements graphic::IText.
◆ setFontSize()
| void SfmlText::setFontSize |
( |
unsigned int | size | ) |
|
|
inlineoverridevirtual |
◆ setPosition()
| void SfmlText::setPosition |
( |
Vector2f | position | ) |
|
|
inlineoverridevirtual |
◆ setRotation()
| void SfmlText::setRotation |
( |
float | angle | ) |
|
|
inlineoverridevirtual |
◆ setText()
| void SfmlText::setText |
( |
const std::string | text | ) |
|
|
inlineoverridevirtual |
◆ setTextColor()
| void SfmlText::setTextColor |
( |
Color | color | ) |
|
|
inlineoverridevirtual |
◆ SfmlWindow
The documentation for this class was generated from the following file: