UIElement
ClassSource: UIElement.h
Inherits from: Entity
Description
Base class for all user interface elements (buttons, labels, etc.).
Integrates with the scene graph and sets EntityType to UI_ELEMENT.
Inheritance
Entity → UIElement
Methods
UIElementType getType() const
Description:
Gets the type of the UI element.
Returns: The UIElementType.
virtual bool isFocusable() const
Description:
Checks if the element is focusable/selectable. Use this for navigation logic.
Returns: true if focusable, false otherwise.
void setFixedPosition(bool fixed)
Description:
Sets whether the element is in a fixed position (HUD/Overlay).
Parameters:
fixed: True to enable fixed position.
bool isFixedPosition() const
Description:
Checks if the element is in a fixed position.
Returns: True if fixed position is enabled.
