|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Makes the placement helpers callable from guillaume::entities without qualification. More...
#include "guillaume/systems/placement_helpers.hpp"

Go to the source code of this file.
Namespaces | |
| namespace | guillaume |
| A C++20 UI framework for desktop and XR, built as an entity-component-system. | |
| namespace | guillaume::entities |
| Widgets: the classes used to create entities with the right components and children. | |
Functions | |
| void | guillaume::entities::centerChild (ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &parentIdentifier, const ecs::Entity::Identifier &childIdentifier, std::uint32_t parentLayer) |
| Center a child inside the bound of its parent, on both axes. | |
| void | guillaume::entities::placeChild (ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &parentIdentifier, const ecs::Entity::Identifier &childIdentifier, const utility::graphic::PositionF &offset, std::uint32_t parentLayer) |
| Place a child at an offset from the position of its parent. | |
| void | guillaume::entities::placeNormalized (ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &parentIdentifier, const ecs::Entity::Identifier &childIdentifier, float normalized, float inset, std::uint32_t parentLayer) |
| Place a child along the width of its parent from a 0 to 1 value, vertically centered. | |
| utility::graphic::PoseF | guillaume::entities::poseOf (ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &identifier) |
| Read the pose (position and orientation) of an entity. | |
Makes the placement helpers callable from guillaume::entities without qualification.
This header declares nothing of its own: the functions are defined in guillaume::systems::placement. They read the pose of an entity and position a child relative to its parent, for the widgets that place children themselves instead of relying on systems::Layout.
Definition in file placement_helpers.hpp.