|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Configures a List, creates it and registers it in an entity registry. More...
#include <headers/guillaume/entities/list.hpp>


Public Member Functions | |
| Builder (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Create a builder set to the defaults of reset(). | |
| std::shared_ptr< List > | buildEntity (void) override |
| Build a list and its rows from the current configuration, without registering it or setting its parent. | |
| void | reset (void) override |
| Restore the defaults. | |
| Builder & | withPose (const utility::graphic::PoseF &pose) |
| Set where the list is placed. | |
| Builder & | withVariant (Variant variant) |
| Set the variant. | |
| Builder & | withItems (const std::vector< Item > &items) |
| Set the entries, replacing the ones set before. | |
| Builder & | withFixedWidth (float width) |
| Set the width of the list and of its rows. | |
| std::shared_ptr< List > | makeList (std::shared_ptr< ecs::Entity > parent, Variant variant, const std::vector< Item > &items) |
| Build a list, register it under parent and reset the builder. | |
| Public Member Functions inherited from guillaume::entities::EntityBuilderBase< List > | |
| EntityBuilderBase (ecs::ComponentRegistry &componentRegistry, ecs::EntityRegistry &entityRegistry) | |
| Construct a builder bound to two registries. | |
| ~EntityBuilderBase (void) override=default | |
| Default destructor. | |
| std::shared_ptr< List > | 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 List, creates it and registers it in an entity registry.
| guillaume::entities::List::Builder::Builder | ( | ecs::ComponentRegistry & | componentRegistry, |
| ecs::EntityRegistry & | entityRegistry ) |
|
overridevirtual |
Build a list and its rows from the current configuration, without registering it or setting its parent.
Implements guillaume::entities::EntityBuilderBase< List >.
Definition at line 220 of file list.cpp.

| std::shared_ptr< List > guillaume::entities::List::Builder::makeList | ( | std::shared_ptr< ecs::Entity > | parent, |
| Variant | variant, | ||
| const std::vector< Item > & | items ) |
Build a list, register it under parent and reset the builder.
| parent | The entity the list becomes a child of, or nullptr for a root entity. |
| variant | The variant of the list. |
| items | The entries, in display order; they replace the ones given to withItems(). |
Definition at line 269 of file list.cpp.

|
overridevirtual |
Restore the defaults.
Defaults: SingleLine variant, no entry, default pose, 360 dp wide (components::List::DefaultWidth).
Implements guillaume::ecs::EntityBuilder.
Definition at line 227 of file list.cpp.

| List::Builder & guillaume::entities::List::Builder::withFixedWidth | ( | float | width | ) |
| List::Builder & guillaume::entities::List::Builder::withItems | ( | const std::vector< Item > & | items | ) |
| List::Builder & guillaume::entities::List::Builder::withPose | ( | const utility::graphic::PoseF & | pose | ) |
| List::Builder & guillaume::entities::List::Builder::withVariant | ( | Variant | variant | ) |