Potato Engine
Loading...
Searching...
No Matches
WidgetElement Struct Referenceabstract

Wrapper for specialized sub-element that can be rendered by a Widget. More...

#include <WidgetElement.hpp>

Inheritance diagram for WidgetElement:
Tickable UIElement TextElement

Public Member Functions

virtual const char * TYPE () const =0
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.

Additional Inherited Members

Protected Member Functions inherited from Tickable
virtual void Tick (float dt)
 Update tick event.

Detailed Description

Wrapper for specialized sub-element that can be rendered by a Widget.

Definition at line 10 of file WidgetElement.hpp.