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 gesture for long presses. This gesture is also known as "Press and Hold".

When the timeout is exceeded, the gesture is triggering the "pressed" signal. 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. How long the timeout is before the "pressed" signal gets emitted is determined by the gtk-long-press-time setting. It can be modified by the delay-factor property.

Signal Details

The "cancelled" signal
lambda (gesture)    :run-last      
gesture
The gtk:gesture-long-press object which 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 which received the signal.
x
The double float with the x coordinate where the press happened, relative to the widget allocation.
y
The double float with 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

2024-2-19