25#include "component.hpp"
58 std::shared_ptr<Component>
render(
void)
override {
65 return shared_from_this();
79 child->onEvent(event);
Base class for all UI components.
std::vector< std::shared_ptr< Component > > _children
Vector of child components.
Specialized component to group other components.
~Container(void) override=default
Destroys the Container object.
Container(const Properties &properties)
Constructs a Container object with properties.
Container(void)
Constructs a Container object.
void onEvent(const Event &event) override
Handles events for the container.
std::shared_ptr< Component > render(void) override
Renders the container and its children recursively.
Represents a UI event with type, target, and optional data.
Manages immutable component properties.