Package: gtk

Class gtk-gesture-multi-press

Superclasses

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

Documented Subclasses

None

Direct Slots

None

Details

gtk-gesture-multi-press is a gtk-gesture implementation able to recognize multiple clicks on a nearby zone, which can be listened for through the "pressed" signal. Whenever time or distance between clicks exceed the GTK defaults, "stopped" is emitted, and the click counter is reset.

Callers may also restrict the area that is considered valid for a > 1 touch/button press through the function gtk-gesture-multi-press-area, so any click happening outside that area is considered to be a first click of its own.

Signal Details

The "pressed" signal
 lambda (gesture n-press x y)    :run-last      
The signal is emitted whenever a button or touch press happens.
gesture
The gtk-gesture-multi-press object which received the signal.
n-press
An integer with how many touch/button presses happened with this one.
x
A double float with the x coordinate, in widget allocation coordinates.
y
A double float with the y coordinate, in widget allocation coordinates.
The "released" signal
 lambda (gesture n-press x y)    :run-last      
The signal is emitted when a button or touch is released. The n-press argument will report the number of press that is paired to this event, note that the "stopped" signal may have been emitted between the press and its release, the n-press argument will only start over at the next press.
gesture
The gtk-gesture-multi-press object which received the signal.
n-press
An integer with the number of press that is paired with this release.
x
A double float with the x coordinate, in widget allocation coordinates.
y
A double float with the y coordinate, in widget allocation coordinates.
The "stopped" signal
 lambda (gesture)    :run-last      
The signal is emitted whenever any time/distance threshold has been exceeded.
gesture
The gtk-gesture-multi-press object which received the signal.
 

Inherited Slot Access Functions

See also

2020-9-11