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

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

Include dependency graph for interaction_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

bool guillaume::entities::isEnabled (const ecs::ComponentRegistry &registry, const ecs::Entity::Identifier &entityIdentifier)
 Whether an entity accepts input.
bool guillaume::entities::isHovered (const ecs::ComponentRegistry &registry, const ecs::Entity::Identifier &entityIdentifier)
 Whether the mouse pointer or a hand is over an entity.
bool guillaume::entities::isPressed (const ecs::ComponentRegistry &registry, const ecs::Entity::Identifier &entityIdentifier)
 Whether an entity is being pressed.
void guillaume::entities::makeInteractive (ecs::ComponentRegistry &registry, const ecs::Entity::Identifier &entityIdentifier, components::AccessibilityRole role, std::function< void(void)> onPress, std::function< void(void)> onStateChange={})
 Make an entity hoverable, pressable and focusable.
void guillaume::entities::setEnabled (ecs::ComponentRegistry &registry, const ecs::Entity::Identifier &entityIdentifier, bool enabled)
 Enable or disable an entity.
utility::graphic::Color32Bit guillaume::entities::stateLayerColor (const ecs::ComponentRegistry &registry, const ecs::Entity::Identifier &entityIdentifier, const utility::graphic::Color32Bit &base, const utility::graphic::Color32Bit &content)
 Container color of a widget in its current input state.

Detailed Description

Makes the interaction helpers callable from guillaume::entities without qualification.

This header declares nothing of its own: the functions are defined in guillaume::systems::interaction. They make an entity pressable (makeInteractive), enable or disable it, tell whether it is hovered or pressed, and compute its container color with the state layer applied.

See also
guillaume::systems::interaction

Definition in file interaction_helpers.hpp.