guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
Loading...
Searching...
No Matches
placement_helpers.hpp File Reference

Makes the placement helpers callable from guillaume::entities without qualification. More...

Include dependency graph for placement_helpers.hpp:
This graph shows which files directly or indirectly include this file:

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 &registry, 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 &registry, 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 &registry, 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 &registry, const ecs::Entity::Identifier &identifier)
 Read the pose (position and orientation) of an entity.

Detailed Description

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.

See also
guillaume::systems::placement

Definition in file placement_helpers.hpp.