|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Configures a LoadingIndicator, then builds it and registers it in the entity registry given at construction. More...
#include <headers/guillaume/entities/loading_indicator.hpp>


Public Member Functions | |
| Builder (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Create a builder set to the defaults of reset(). | |
| std::shared_ptr< LoadingIndicator > | buildEntity (void) override |
| Build a loading indicator and its animated child from the current configuration, without registering it or setting its parent. | |
| void | reset (void) override |
| Restore the defaults: Circular variant, a 48 dp diameter and a default pose. | |
| Builder & | withPose (const utility::graphic::PoseF &pose) |
| Set the pose the indicator is created with. | |
| Builder & | withVariant (Variant variant) |
| Set the indicator variant. | |
| Builder & | withSize (float size) |
| Set the diameter of the Circular variant. | |
| std::shared_ptr< LoadingIndicator > | makeLoadingIndicator (std::shared_ptr< ecs::Entity > parent, Variant variant) |
Build a loading indicator, register it under parent and reset the builder. | |
| Public Member Functions inherited from guillaume::entities::EntityBuilderBase< LoadingIndicator > | |
| EntityBuilderBase (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Construct a builder bound to two registries. | |
| ~EntityBuilderBase (void) override=default | |
| Default destructor. | |
| std::shared_ptr< LoadingIndicator > | registerEntity (std::shared_ptr< ecs::Entity > parent) |
| Build the widget, attach it to its parent, hand it to the entity registry, then reset the builder to its defaults. | |
| Public Member Functions inherited from guillaume::ecs::EntityBuilder | |
| EntityBuilder (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Create a builder working on a pair of registries, normally those of one scene. | |
| virtual | ~EntityBuilder (void)=default |
| Virtual destructor. | |
Additional Inherited Members | |
| Protected Member Functions inherited from guillaume::ecs::EntityBuilder | |
| ComponentRegistry & | getComponentRegistry (void) |
| Get the registry in which the builder creates components. | |
| EntityRegistry & | getEntityRegistry (void) |
| Get the registry in which the builder registers the entities it creates. | |
Configures a LoadingIndicator, then builds it and registers it in the entity registry given at construction.
Definition at line 103 of file loading_indicator.hpp.
| guillaume::entities::LoadingIndicator::Builder::Builder | ( | ecs::ComponentRegistry & | componentRegistry, |
| ecs::EntityRegistry & | entityRegistry ) |
Create a builder set to the defaults of reset().
| componentRegistry | The registry the indicator's components are created in. |
| entityRegistry | The registry the built indicators are added to. |
Definition at line 107 of file loading_indicator.cpp.

|
overridevirtual |
Build a loading indicator and its animated child from the current configuration, without registering it or setting its parent.
Implements guillaume::entities::EntityBuilderBase< LoadingIndicator >.
Definition at line 116 of file loading_indicator.cpp.

| std::shared_ptr< LoadingIndicator > guillaume::entities::LoadingIndicator::Builder::makeLoadingIndicator | ( | std::shared_ptr< ecs::Entity > | parent, |
| Variant | variant ) |
Build a loading indicator, register it under parent and reset the builder.
variant replaces the variant set before; the pose and the size are kept.
| parent | The entity the indicator is attached to. |
| variant | The indicator variant. |
Definition at line 170 of file loading_indicator.cpp.

|
overridevirtual |
Restore the defaults: Circular variant, a 48 dp diameter and a default pose.
Implements guillaume::ecs::EntityBuilder.
Definition at line 131 of file loading_indicator.cpp.

| LoadingIndicator::Builder & guillaume::entities::LoadingIndicator::Builder::withPose | ( | const utility::graphic::PoseF & | pose | ) |
Set the pose the indicator is created with.
| pose | The position and orientation of the widget. Default: a default-constructed pose. |
Definition at line 150 of file loading_indicator.cpp.
| LoadingIndicator::Builder & guillaume::entities::LoadingIndicator::Builder::withSize | ( | float | size | ) |
Set the diameter of the Circular variant.
| size | The diameter, in dp; it must be positive, the builder does not check it. Default: 48. The Linear variant ignores it. |
Definition at line 163 of file loading_indicator.cpp.
| LoadingIndicator::Builder & guillaume::entities::LoadingIndicator::Builder::withVariant | ( | Variant | variant | ) |
Set the indicator variant.
| variant | The variant. Default: Variant::Circular. |
Definition at line 157 of file loading_indicator.cpp.
