Package: gtk

Class gtk:gesture-long-press

Superclasses

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

Documented Subclasses

None

Direct Slots

delay-factor
The delay-factor property of type :double (Read / Write)
Factor by which to modify the default timeout.
Allowed values: [0.5d0, 2.0d0]
Default value: 1.0d0

Details

The gtk:gesture-long-press object is a gtk:gesture implementation able to recognize long presses, triggering the "pressed" after the timeout is exceeded. If the touchpoint is lifted before the timeout passes, or if it drifts too far of the initial press point, the "cancelled" signal will be emitted.

Signal Details

The "cancelled" signal
lambda (gesture)    :run-last      
gesture
The gtk:gesture-long-press object that received the signal.
The signal is emitted whenever a press moved too far, or was released before the "pressed" signal happened.
The "pressed" signal
lambda (gesture x y)    :run-last      
gesture
The gtk:gesture-long-press object that received the signal.
x
The double float for the x coordinate where the press happened, relative to the widget allocation.
y
The double float for the y coordinate where the press happened, relative to the widget allocation.
The signal is emitted whenever a press goes unmoved/unreleased longer than what the GTK defaults tell.
 

Returned by

Slot Access Functions

Inherited Slot Access Functions

See also

#2025-07-16