32 #include "../../Core/Math/point.h" 83 Pointf pos(
const std::shared_ptr<View> &view)
const;
104 bool _alt_down =
false;
105 bool _shift_down =
false;
106 bool _ctrl_down =
false;
107 bool _cmd_down =
false;
View for an area of the user interface.
Definition: view.h:65
PointerEvent(PointerEventType type, PointerButton button, const Pointf &pos, bool alt_down, bool shift_down, bool ctrl_down, bool cmd_down)
Definition: pointer_event.h:70
Pointer event.
Definition: pointer_event.h:67
Pointer double click pressed.
bool cmd_down() const
True if the command key was down.
Definition: pointer_event.h:98
Base class for events being dispatched through the view hiarchy.
Definition: UI/Events/event.h:47
PointerEventType type() const
Pointer event type.
Definition: pointer_event.h:76
bool ctrl_down() const
True if the control key was down.
Definition: pointer_event.h:95
PointerButton
Pointer button.
Definition: pointer_event.h:37
PointerButton button() const
Pointer button relevant for the event.
Definition: pointer_event.h:79
bool shift_down() const
True if the shift key was down.
Definition: pointer_event.h:92
void set_pos(View *view, const Pointf &pos)
Set event pointer position relative to local view content coordinates.
PointerEventType
Pointer event type.
Definition: pointer_event.h:54
2D (x,y) point structure - Float
Definition: point.h:71
Pointf pos(View *view) const
Pointer position relative to local view content coordinates.
bool alt_down() const
True if the alt key was down.
Definition: pointer_event.h:89