Widgets: the classes used to create entities with the right components and children.
void 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.
utility::graphic::PoseF poseOf(ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &identifier)
Read the pose (position and orientation) of an entity.
void 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 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.
Placement helpers for the children systems::Layout does not arrange.