Inkscape
Vector Graphics Editor
|
Movement of the mouse pointer. More...
#include <canvas-event.h>
Public Member Functions | |
EventType | type () const override |
Return the dynamic type of the CanvasEvent. | |
![]() | |
virtual | ~CanvasEvent () |
virtual unsigned | modifiersChange () const |
Get the change in the modifiers due to this event. | |
unsigned | modifiersAfter () const |
Get the modifiers mask immediately after the event. (Convenience function.) | |
Public Attributes | |
Geom::Point | pos |
Location of the cursor. | |
uint32_t | time = 0 |
Timestamp of the event in milliseconds. | |
bool | control_point_synthesized = false |
Whether this is a fake motion event synthesized by a control point. | |
ExtendedInput | extinput |
Extended input data for graphics tablet input. Fields may be empty. | |
![]() | |
unsigned | modifiers = 0 |
The modifiers mask immediately before the event. | |
std::shared_ptr< Gdk::Device const > | device |
The device that sourced the event. May be null. | |
Movement of the mouse pointer.
May also be used for touch interactions.
Definition at line 202 of file canvas-event.h.
|
inlineoverridevirtual |
Return the dynamic type of the CanvasEvent.
Implements Inkscape::CanvasEvent.
Definition at line 204 of file canvas-event.h.
References Inkscape::MOTION.
bool Inkscape::MotionEvent::control_point_synthesized = false |
Whether this is a fake motion event synthesized by a control point.
Definition at line 213 of file canvas-event.h.
ExtendedInput Inkscape::MotionEvent::extinput |
Extended input data for graphics tablet input. Fields may be empty.
Definition at line 216 of file canvas-event.h.
Geom::Point Inkscape::MotionEvent::pos |
Location of the cursor.
Definition at line 207 of file canvas-event.h.
Referenced by Inkscape::UI::Tools::PenTool::_handleMotionNotify(), Inkscape::UI::Tools::PencilTool::_handleMotionNotify(), Inkscape::UI::Tools::ConnectorTool::_handleMotionNotify(), Inkscape::UI::Tools::InteractiveBooleansTool::event_motion_handler(), and Inkscape::UI::Widget::CanvasGrid::rulerMotion().
uint32_t Inkscape::MotionEvent::time = 0 |
Timestamp of the event in milliseconds.
Definition at line 210 of file canvas-event.h.