|
guillaume 2026.6.1
A C++ UI framework designed for modern desktop and extended reality (XR) applications.
|
Makes the interaction helpers callable from guillaume::entities without qualification. More...
#include "guillaume/systems/interaction_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 | |
| bool | guillaume::entities::isEnabled (const ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &entityIdentifier) |
| Whether an entity accepts input. | |
| bool | guillaume::entities::isHovered (const ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &entityIdentifier) |
| Whether the mouse pointer or a hand is over an entity. | |
| bool | guillaume::entities::isPressed (const ecs::ComponentRegistry ®istry, const ecs::Entity::Identifier &entityIdentifier) |
| Whether an entity is being pressed. | |
| void | guillaume::entities::makeInteractive (ecs::ComponentRegistry ®istry, 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 ®istry, const ecs::Entity::Identifier &entityIdentifier, bool enabled) |
| Enable or disable an entity. | |
| utility::graphic::Color32Bit | guillaume::entities::stateLayerColor (const ecs::ComponentRegistry ®istry, 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. | |
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.
Definition in file interaction_helpers.hpp.