|
Potato Engine
|
Element that displays text on a widget. More...
#include <TextElement.hpp>
Public Member Functions | |
| virtual const char * | TYPE () const override |
| Public Member Functions inherited from Tickable | |
| bool | isTicking () const |
| Checks if object is ticking. | |
| void | SetTicking (bool isEnabled) |
| Sets tick state for object. | |
| Public Member Functions inherited from UIElement | |
| Vector2 | GetScreenSize () const |
| Gets size of UI. | |
| void | SetScreenSize (const Vector2 &size) |
| Sets size of UI. | |
| Vector2 | GetScreenPosition () const |
| Gets screen position of UI. | |
| void | SetScreenPosition (const Vector2 &ScreenPosition) |
| Sets screen position of UI. | |
| void | AddScreenOffset (const Vector2 &offset) |
| Adds offset to UI position. | |
| bool | isVisible () const |
| Checks if UI is visible. | |
| void | SetVisibility (bool visibility) |
| Sets visibility of UI. | |
Public Attributes | |
| std::string | field |
| Text to display. | |
Additional Inherited Members | |
| Protected Member Functions inherited from Tickable | |
| virtual void | Tick (float dt) |
| Update tick event. | |
Element that displays text on a widget.
Definition at line 9 of file TextElement.hpp.
|
inlineoverridevirtual |
Implements WidgetElement.
Definition at line 11 of file TextElement.hpp.
| std::string TextElement::field |
Text to display.
Definition at line 18 of file TextElement.hpp.