15 #include <vsg/app/Window.h>
16 #include <vsg/core/observer_ptr.h>
17 #include <vsg/ui/WindowEvent.h>
22 enum ButtonMask : uint16_t
37 PointerEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask) :
41 mask(in_buttonMask) {}
47 void read(
Input& input)
override;
48 void write(
Output& output)
const override;
58 ButtonPressEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask, uint32_t in_button) :
59 Inherit(in_window, in_time, in_x, in_y, in_buttonMask),
64 void read(
Input& input)
override;
65 void write(
Output& output)
const override;
75 ButtonReleaseEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask, uint32_t in_button) :
76 Inherit(in_window, in_time, in_x, in_y, in_buttonMask),
81 void read(
Input& input)
override;
82 void write(
Output& output)
const override;
92 MoveEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask) :
93 Inherit(in_window, in_time, in_x, in_y, in_buttonMask) {}
MoveEvent represent a button move event.
Definition: PointerEvent.h:88
PointerEvent is a base class for mouse pointer events.
Definition: PointerEvent.h:33