9#ifndef ASW_MODULES_UI_WIDGET_H
10#define ASW_MODULES_UI_WIDGET_H
115 const std::vector<std::unique_ptr<Widget>>&
children()
const
159 virtual void draw(
Context& ctx);
168 template <
class T,
class... Args> T&
add_child(Args&&... args)
170 static_assert(std::is_base_of_v<Widget, T>,
"add_child<T>: T must derive from Widget");
171 auto ptr = std::make_unique<T>(std::forward<Args>(args)...);
Shared state for the UI system.
Manages focus navigation for UI widgets.
Root container that manages the UI tree, input, and rendering.
UI event types for the ASW UI module.
Anchor
A point of the parent an anchored widget sits at, see Widget::anchor.
uint32_t WidgetId
Unique identifier type for widgets.
Event structure for UI interactions.