Text interface.
More...
#include <IText.hpp>
|
| virtual | ~IText ()=default |
| | Destroy the IText object.
|
| |
| virtual bool | isReady () const =0 |
| |
| virtual void | setText (const std::string text)=0 |
| | Set the Text value.
|
| |
| virtual std::string | getText () const =0 |
| | Get the Text value.
|
| |
| virtual void | setFont (IFont *font)=0 |
| | Set the Font value - a loaded IFont, not a path, so changing font never implies a reload from disk.
|
| |
| virtual void | setFontSize (unsigned int size)=0 |
| | Set the Font Size text.
|
| |
| virtual unsigned int | getFontSize () const =0 |
| | Get the Font Size text.
|
| |
| virtual void | setTextColor (Color color)=0 |
| | Set the Text Color text.
|
| |
| virtual Color | getTextColor () const =0 |
| | Get the Text Color text.
|
| |
| virtual void | setPosition (Vector2f position)=0 |
| | Set the Position text.
|
| |
| virtual Vector2f | getPosition () const =0 |
| | Get the Position text.
|
| |
| virtual void | setRotation (float angle)=0 |
| | Set the Rotation object.
|
| |
| virtual float | getRotation () const =0 |
| | Get the Rotation object.
|
| |
◆ ~IText()
| virtual graphic::IText::~IText |
( |
| ) |
|
|
virtualdefault |
Destroy the IText object.
◆ getFontSize()
| virtual unsigned int graphic::IText::getFontSize |
( |
| ) |
const |
|
pure virtual |
Get the Font Size text.
- Returns
- unsigned int
◆ getPosition()
| virtual Vector2f graphic::IText::getPosition |
( |
| ) |
const |
|
pure virtual |
Get the Position text.
- Returns
- Vector2f
◆ getRotation()
| virtual float graphic::IText::getRotation |
( |
| ) |
const |
|
pure virtual |
Get the Rotation object.
- Returns
- float
◆ getText()
| virtual std::string graphic::IText::getText |
( |
| ) |
const |
|
pure virtual |
Get the Text value.
- Returns
- std::string
◆ getTextColor()
| virtual Color graphic::IText::getTextColor |
( |
| ) |
const |
|
pure virtual |
Get the Text Color text.
- Returns
- Color
◆ isReady()
| virtual bool graphic::IText::isReady |
( |
| ) |
const |
|
pure virtual |
◆ setFont()
| virtual void graphic::IText::setFont |
( |
IFont * |
font | ) |
|
|
pure virtual |
Set the Font value - a loaded IFont, not a path, so changing font never implies a reload from disk.
- Parameters
-
◆ setFontSize()
| virtual void graphic::IText::setFontSize |
( |
unsigned int |
size | ) |
|
|
pure virtual |
Set the Font Size text.
- Parameters
-
◆ setPosition()
| virtual void graphic::IText::setPosition |
( |
Vector2f |
position | ) |
|
|
pure virtual |
Set the Position text.
- Parameters
-
◆ setRotation()
| virtual void graphic::IText::setRotation |
( |
float |
angle | ) |
|
|
pure virtual |
Set the Rotation object.
- Parameters
-
◆ setText()
| virtual void graphic::IText::setText |
( |
const std::string |
text | ) |
|
|
pure virtual |
Set the Text value.
- Parameters
-
◆ setTextColor()
| virtual void graphic::IText::setTextColor |
( |
Color |
color | ) |
|
|
pure virtual |
Set the Text Color text.
- Parameters
-
The documentation for this interface was generated from the following file: