Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::MotionEvent Struct Referencefinal

Movement of the mouse pointer. More...

#include <canvas-event.h>

Inheritance diagram for Inkscape::MotionEvent:
Inkscape::CanvasEvent

Public Member Functions

EventType type () const override
 Return the dynamic type of the CanvasEvent.
 
- Public Member Functions inherited from Inkscape::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.
 
- Public Attributes inherited from Inkscape::CanvasEvent
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.
 

Detailed Description

Movement of the mouse pointer.

May also be used for touch interactions.

Definition at line 202 of file canvas-event.h.

Member Function Documentation

◆ type()

EventType Inkscape::MotionEvent::type ( ) const
inlineoverridevirtual

Return the dynamic type of the CanvasEvent.

Implements Inkscape::CanvasEvent.

Definition at line 204 of file canvas-event.h.

References Inkscape::MOTION.

Member Data Documentation

◆ control_point_synthesized

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.

◆ extinput

ExtendedInput Inkscape::MotionEvent::extinput

Extended input data for graphics tablet input. Fields may be empty.

Definition at line 216 of file canvas-event.h.

◆ pos

◆ time

uint32_t Inkscape::MotionEvent::time = 0

Timestamp of the event in milliseconds.

Definition at line 210 of file canvas-event.h.


The documentation for this struct was generated from the following file: