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

Scroll the item or widget by the provided amount. More...

#include <canvas-event.h>

Inheritance diagram for Inkscape::ScrollEvent:
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 delta
 The amount scrolled.
 
Gdk::ScrollUnit unit = Gdk::ScrollUnit::SURFACE
 The units of the scroll delta.
 
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

Scroll the item or widget by the provided amount.

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

Member Function Documentation

◆ type()

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

Return the dynamic type of the CanvasEvent.

Implements Inkscape::CanvasEvent.

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

References Inkscape::SCROLL.

Member Data Documentation

◆ delta

Geom::Point Inkscape::ScrollEvent::delta

The amount scrolled.

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

◆ extinput

ExtendedInput Inkscape::ScrollEvent::extinput

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

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

◆ unit

Gdk::ScrollUnit Inkscape::ScrollEvent::unit = Gdk::ScrollUnit::SURFACE

The units of the scroll delta.

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


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