Package: gtk

Class gtk-gesture-long-press

Superclasses

gtk-gesture-single, gtk-gesture, gtk-event-controller, g-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

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

Slot Access Functions

Inherited Slot Access Functions

See also

2020-9-11