23#include "guillaume/systems/scroll.hpp"
54 const auto offset = wheelEvent->getOffset();
55 const auto step = scrollable.getScrollStep();
57 auto contentOffset = scrollable.getContentOffset();
58 contentOffset.x += offset.x * step.x;
59 contentOffset.y += offset.y * step.y;
61 scrollable.setContentOffset(contentOffset);
62 scrollable.clampOffset(bound);
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)
ComponentType & getComponent(const ecs::Entity::Identifier &entityIdentifier)
Get a component of an entity from the bound registry, to read or modify it.
Hands each engine event to the listeners subscribed to its type.
void consumeNextEvent(void)
EventManager(EventBus &eventBus)
std::shared_ptr< EventType > getLastEvent(void)
State. Every class here is plain data attached to an entity.
The entity-component-system core, independent of any widget.
Delivery of engine events to the systems that subscribed to them.
Rules. Every class here runs each frame on the entities that have the components it declares.