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 class is a gtk:gesture implementation for swipe gestures. 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 in a "update" signal handler for the gdk:frame-clock object. All velocities are reported in pixels/sec units.

Signal Details

The "swipe" signal
lambda (gesture xvel yvel)    :run-last      
gesture
The gtk:gesture-swipe object which received the signal.
xvel
The double float with the velocity in the x axis, in pixels/sec.
yvel
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

Inherited Slot Access Functions

See also

2024-7-27