sfml_impl 0.1.0
Vendor SFML 3.0.2 : IGraphic2Module / IAudioModule
Loading...
Searching...
No Matches
SfmlText Class Reference

Sfml Text class - references a SfmlFont, does not own it. Deleting the text never touches the font. More...

#include <SfmlText.hpp>

Inheritance diagram for SfmlText:
Collaboration diagram for SfmlText:

Public Member Functions

 SfmlText (std::string data, SfmlFont &font)
 
 ~SfmlText () override=default
 
bool isReady () const override
 
void setText (const std::string text) override
 
std::string getText () const override
 
void setFont (graphic::IFont *font) override
 
void setFontSize (unsigned int size) override
 
unsigned int getFontSize () const override
 
void setTextColor (Color color) override
 
Color getTextColor () const override
 
void setPosition (Vector2f position) override
 
Vector2f getPosition () const override
 
void setRotation (float angle) override
 
float getRotation () const override
 

Friends

class SfmlWindow
 

Detailed Description

Sfml Text class - references a SfmlFont, does not own it. Deleting the text never touches the font.

Constructor & Destructor Documentation

◆ SfmlText()

SfmlText::SfmlText ( std::string  data,
SfmlFont font 
)
inline

◆ ~SfmlText()

SfmlText::~SfmlText ( )
overridedefault

Member Function Documentation

◆ getFontSize()

unsigned int SfmlText::getFontSize ( ) const
inlineoverride

◆ getPosition()

Vector2f SfmlText::getPosition ( ) const
inlineoverride

◆ getRotation()

float SfmlText::getRotation ( ) const
inlineoverride

◆ getText()

std::string SfmlText::getText ( ) const
inlineoverride

◆ getTextColor()

Color SfmlText::getTextColor ( ) const
inlineoverride

◆ isReady()

bool SfmlText::isReady ( ) const
inlineoverride

◆ setFont()

void SfmlText::setFont ( graphic::IFont *  font)
inlineoverride

◆ setFontSize()

void SfmlText::setFontSize ( unsigned int  size)
inlineoverride

◆ setPosition()

void SfmlText::setPosition ( Vector2f  position)
inlineoverride

◆ setRotation()

void SfmlText::setRotation ( float  angle)
inlineoverride

◆ setText()

void SfmlText::setText ( const std::string  text)
inlineoverride

◆ setTextColor()

void SfmlText::setTextColor ( Color  color)
inlineoverride

Friends And Related Symbol Documentation

◆ SfmlWindow

friend class SfmlWindow
friend

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