15 #include <vsg/app/Window.h>
16 #include <vsg/core/observer_ptr.h>
17 #include <vsg/ui/WindowEvent.h>
22 enum ButtonMask : uint16_t
38 PointerEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask) :
42 mask(in_buttonMask) {}
46 ButtonMask mask = BUTTON_MASK_OFF;
48 void read(
Input& input)
override;
49 void write(
Output& output)
const override;
59 ButtonPressEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask, uint32_t in_button) :
60 Inherit(in_window, in_time, in_x, in_y, in_buttonMask),
65 void read(
Input& input)
override;
66 void write(
Output& output)
const override;
76 ButtonReleaseEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask, uint32_t in_button) :
77 Inherit(in_window, in_time, in_x, in_y, in_buttonMask),
82 void read(
Input& input)
override;
83 void write(
Output& output)
const override;
93 MoveEvent(
Window* in_window, time_point in_time, int32_t in_x, int32_t in_y, ButtonMask in_buttonMask) :
94 Inherit(in_window, in_time, in_x, in_y, in_buttonMask) {}
MoveEvent represents a pointer move event.
Definition: PointerEvent.h:89
PointerEvent is a base class for mouse pointer events.
Definition: PointerEvent.h:34