|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Holds one builder per builder type and hands them out by type. More...
#include <headers/guillaume/ecs/entity_builder_manager.hpp>

Public Member Functions | |
| template<InheritFromEntityBuilder BuilderType> | |
| void | addBuilder (ComponentRegistry &componentRegistry, EntityRegistry &entityRegistry) |
| Create a builder of a given type and keep it. | |
| EntityBuilderManager (void) | |
| Create a manager with no builder. | |
| virtual | ~EntityBuilderManager (void) |
| Destroy the manager and the builders it holds. | |
| template<InheritFromEntityBuilder BuilderType> | |
| BuilderType & | getBuilder (void) |
| Get the builder of a given type. | |
Holds one builder per builder type and hands them out by type.
Each Scene has one, reached with Scene::getBuilderManager and filled with a builder for every widget of the library. This is how a scene creates its widgets:
Definition at line 55 of file entity_builder_manager.hpp.
| guillaume::ecs::EntityBuilderManager::EntityBuilderManager | ( | void | ) |
Create a manager with no builder.
Definition at line 27 of file entity_builder_manager.cpp.
|
virtual |
Destroy the manager and the builders it holds.
Definition at line 31 of file entity_builder_manager.cpp.
| void guillaume::ecs::EntityBuilderManager::addBuilder | ( | ComponentRegistry & | componentRegistry, |
| EntityRegistry & | entityRegistry ) |
Create a builder of a given type and keep it.
| BuilderType | The builder type to create, for instance entities::Button::Builder. It must be constructible from the two registries. |
| componentRegistry | The registry in which the builder creates components. It must outlive the manager. |
| entityRegistry | The registry in which the builder registers entities. It must outlive the manager. |
| std::runtime_error | When the manager already holds a builder of that type. |
| BuilderType & guillaume::ecs::EntityBuilderManager::getBuilder | ( | void | ) |
Get the builder of a given type.
| BuilderType | The builder type to get, for instance entities::Button::Builder. |
| std::runtime_error | When no builder of that type was added. |