Package: gtk

Class gtk:gesture-swipe

Superclasses

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

Documented Subclasses

None

Direct Slots

None

Details

The gtk:gesture-swipe object 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 gtk:gesture-swipe-velocity function can be called on, for example, a "update" handler.

All velocities are reported in pixels/sec units.

Signal Details

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

Returned by

gtk:gesture-swipe-new

Inherited Slot Access Functions

See also

#2025-1-25