14#include <AUI/Platform/AWindow.h>
16struct ViewActionMouseMove {
18 ViewActionMouseMove() =
default;
20 ViewActionMouseMove(
const glm::ivec2& position) : position(position) {}
22 void operator()(
const _<AView>& view) {
24 auto coords = view->getPositionInWindow() + (position ? *position : (view->getSize() / 2));
25 auto window = view->getWindow();
26 window->onPointerMove(coords, {});
Utility wrapper implementing the stack-allocated (fast) optional idiom.
Definition AOptional.h:33
An std::weak_ptr with AUI extensions.
Definition SharedPtrTypes.h:179
Definition MouseMove.h:16