9#ifndef ASW_MODULES_UI_WIDGET_H
10#define ASW_MODULES_UI_WIDGET_H
108 template <
class T,
class... Args> T&
add_child(Args&&... args)
110 static_assert(std::is_base_of_v<Widget, T>,
"add_child<T>: T must derive from Widget");
111 auto ptr = std::make_unique<T>(std::forward<Args>(args)...);
114 children.emplace_back(std::move(ptr));
Shared state for the UI system.
UI event types for the ASW UI module.
uint32_t WidgetId
Unique identifier type for widgets.
Event structure for UI interactions.