7#ifndef ENGINE_UIELEMENT
8#define ENGINE_UIELEMENT
11#include "../Utils.hpp"
28 const char* m_uiClass;
A single node in a game scene.
Definition Node.hpp:43
Base class for UI elements.
Definition UIElement.hpp:24
~UIElement() override
Definition UIElement.cpp:34
void SetOffset(Vec2f offset)
Sets the offset of the UI element.
Definition UIElement.cpp:62
void SetAnchor(const char *anchor)
Sets the anchor of the UI element.
Definition UIElement.cpp:49
void AddTheme(const char *theme)
Sets the theme of the UI element.
Definition UIElement.cpp:43
void Init() override
Creates the UI element and adds it to the DOM.
Definition UIElement.cpp:17
void OnDisable() override
Hides the UI element when disabled.
Definition UIElement.cpp:76
void OnEnable() override
Shows the UI element when enabled.
Definition UIElement.cpp:69
void SetDimensions(Vec2f dimensions)
Sets the dimensions of the UI element.
Definition UIElement.cpp:55
A 2D vector struct with overloaded operators.
Definition Utils.hpp:38