P-E-R-R-Y
Utilitaires, contrats et vendors du moteur, en une seule doc
Loading...
Searching...
No Matches
graphic::IText Interface Referenceabstract

Text interface. More...

#include <IText.hpp>

Inheritance diagram for graphic::IText:

Public Member Functions

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.

Detailed Description

Text interface.

Constructor & Destructor Documentation

◆ ~IText()

virtual graphic::IText::~IText ( )
virtualdefault

Destroy the IText object.

Member Function Documentation

◆ getFontSize()

virtual unsigned int graphic::IText::getFontSize ( ) const
pure virtual

Get the Font Size text.

Returns
unsigned int

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ getPosition()

virtual Vector2f graphic::IText::getPosition ( ) const
pure virtual

Get the Position text.

Returns
Vector2f

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ getRotation()

virtual float graphic::IText::getRotation ( ) const
pure virtual

Get the Rotation object.

Returns
float

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ getText()

virtual std::string graphic::IText::getText ( ) const
pure virtual

Get the Text value.

Returns
std::string

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ getTextColor()

virtual Color graphic::IText::getTextColor ( ) const
pure virtual

Get the Text Color text.

Returns
Color

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ isReady()

virtual bool graphic::IText::isReady ( ) const
pure virtual

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ 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
font

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ setFontSize()

virtual void graphic::IText::setFontSize ( unsigned int size)
pure virtual

Set the Font Size text.

Parameters
size

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ setPosition()

virtual void graphic::IText::setPosition ( Vector2f position)
pure virtual

Set the Position text.

Parameters
position

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ setRotation()

virtual void graphic::IText::setRotation ( float angle)
pure virtual

Set the Rotation object.

Parameters
angle

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ setText()

virtual void graphic::IText::setText ( const std::string text)
pure virtual

Set the Text value.

Parameters
text

Implemented in RayText, SdlText, SdlText, and SfmlText.

◆ setTextColor()

virtual void graphic::IText::setTextColor ( Color color)
pure virtual

Set the Text Color text.

Parameters
color

Implemented in RayText, SdlText, SdlText, and SfmlText.


The documentation for this interface was generated from the following file: