igraphic 0.2.0
Contrats graphiques chargeables : IGraphic2Module / IGraphic3Module
Loading...
Searching...
No Matches
IText.hpp
Go to the documentation of this file.
1
12#ifndef ITEXT_HPP_
13 #define ITEXT_HPP_
14
15 #include "Type.hpp"
16 #include "IFont.hpp"
17 #include <string>
18
19namespace graphic {
20
26 class IText {
27
28 public:
29
34 virtual ~IText() = default;
35
36 virtual bool isReady() const = 0;
37
43 virtual void setText(const std::string text) = 0;
44
50 virtual std::string getText() const = 0;
51
58 virtual void setFont(IFont *font) = 0;
59
65 virtual void setFontSize(unsigned int size) = 0;
66
72 virtual unsigned int getFontSize() const = 0;
73
79 virtual void setTextColor(Color color) = 0;
80
86 virtual Color getTextColor() const = 0;
87
93 virtual void setPosition(Vector2f position) = 0;
94
100 virtual Vector2f getPosition() const = 0;
101
107 virtual void setRotation(float angle) = 0;
108
114 virtual float getRotation() const = 0;
115
116 };
117
118}
119
122#endif /* !ITEXT_HPP_ */
Loaded font data, independent of any IText that references it. Deleting every IText built with a font...
Definition IFont.hpp:22
Text interface.
Definition IText.hpp:26
virtual unsigned int getFontSize() const =0
Get the Font Size text.
virtual ~IText()=default
Destroy the IText object.
virtual std::string getText() const =0
Get the Text value.
virtual void setRotation(float angle)=0
Set the Rotation object.
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 Color getTextColor() const =0
Get the Text Color text.
virtual void setText(const std::string text)=0
Set the Text value.
virtual void setTextColor(Color color)=0
Set the Text Color text.
virtual Vector2f getPosition() const =0
Get the Position text.
virtual void setPosition(Vector2f position)=0
Set the Position text.
virtual bool isReady() const =0
virtual void setFontSize(unsigned int size)=0
Set the Font Size text.
virtual float getRotation() const =0
Get the Rotation object.
Definition IGamepad.hpp:14