int getWidth() const override
Definition: Text.cpp:69
void setFontSize(int fontSize)
Set the font size.
Definition: Text.cpp:42
int getY() const override
Definition: Text.cpp:64
void draw(uint32_t time) override
The draw method. It will be called once per frame for each object in a scene.
Definition: Text.cpp:49
An abstract class implementing both the GraphicsObject and the TouchEnabledObject, which gives an interactive graphic object as result.
Definition: InteractiveGraphicsObject.h:20
void setText(const char *text)
Set the text message.
Definition: Text.cpp:17
void setGeometry(Rect geom)
Set the text geometry (position and size). If width and height are set to -1 the text natural size wi...
Definition: Text.cpp:23
void setFontPath(const std::string &fontPath)
Set the text font.
Definition: Text.cpp:35
int getX() const override
Definition: Text.cpp:59
int getHeight() const override
Definition: Text.cpp:74