Package: gtk

Class gtk-gesture-swipe

Superclasses

gtk-gesture-single, gtk-gesture, gtk-event-controller, g-object, common-lisp:standard-object, common-lisp:t

Documented Subclasses

None

Direct Slots

None

Details

gtk-gesture-swipe is a gtk-gesture implementation able to recognize swipes, after a press/move/.../move/release sequence happens, the "swipe" signal will be emitted, providing the velocity and directionality of the sequence at the time it was lifted.

If the velocity is desired in intermediate points, the function gtk-gesture-swipe-velocity can be called on e.g. a "update" handler.

All velocities are reported in pixels/sec units.

Signal Details

The "swipe" signal
 lambda (gesture velocity-x velocity-y)    :run-last    
The signal is emitted when the recognized gesture is finished, velocity and direction are a product of previously recorded events.
gesture
The gtk-gesture-multi-press object which received the signal.
velocity-x
A double float with the velocity in the x axis, in pixels/sec.
velocity-y
A double float with the velocity in the y axis, in pixels/sec.
 

Inherited Slot Access Functions

See also

2020-9-11