23#include "guillaume/systems/style_state.hpp"
25#include "guillaume/components/drag_interaction.hpp"
26#include "guillaume/components/hand_button_interaction.hpp"
27#include "guillaume/components/hand_hover_interaction.hpp"
28#include "guillaume/components/hand_pinch_interaction.hpp"
29#include "guillaume/components/hand_poke_interaction.hpp"
30#include "guillaume/components/mouse_button_interaction.hpp"
31#include "guillaume/components/mouse_hover_interaction.hpp"
76 utility::event::MouseButtonEvent::Button::Left);
84 utility::event::HandButtonEvent::Button::A);
101 bool dragged =
false;
108 state.setHovered(hovered).setPressed(pressed).setDragged(dragged);
std::size_t Identifier
The key under which an entity's components are stored. Systems and components refer to entities by th...
SystemFiller(Phase phase)
bool hasComponent(const ecs::Entity::Identifier &entityIdentifier) const
Tell whether an entity has a component, in the bound registry.
ComponentType & getComponent(const ecs::Entity::Identifier &entityIdentifier)
Get a component of an entity from the bound registry, to read or modify it.
bool requireComponent(const ecs::Entity::Identifier &entityIdentifier)
Tell whether an entity has a component, and log a warning naming the entity and the component when it...
StyleState(void)
Create the system, in the Event phase.
void update(const ecs::Entity::Identifier &entityIdentifier) override
Recompute the hovered, pressed and dragged flags of one entity.
void prepare(void) override
Does nothing: the system keeps no per-frame state.
void cleanup(void) override
Does nothing: the system keeps no per-frame state.
State. Every class here is plain data attached to an entity.
The entity-component-system core, independent of any widget.
Rules. Every class here runs each frame on the entities that have the components it declares.