Package: gtk

Class gtk:gesture-single

Superclasses

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

Documented Subclasses

Direct Slots

button
The button property of type :uint (Read / Write)
Mouse button number to listen to, or 0 to listen for any button.
Default value: 1
exclusive
The exclusive property of type :boolean (Read / Write)
Whether the gesture is exclusive. Exclusive gestures only listen to pointer and pointer emulated events.
Default value: false
touch-only
The touch-only property of type :boolean (Read / Write)
Whether the gesture handles only touch events.
Default value: false

Details

The gtk:gesture-single class is a gtk:gesture implementation optimized for single-touch and mouse gestures. Under interaction, these gestures stick to the first interacting sequence, which is accessible through the gtk:gesture-single-current-sequence function while the gesture is being interacted with.

By default gestures react to both the button primary and touch events. The gtk:gesture-single-touch-only function can be used to change the touch behavior. Callers may also specify a different mouse button number to interact with through the gtk:gesture-single-button function, or react to any mouse button by setting 0. While the gesture is active, the button being currently pressed can be known through the gtk:gesture-single-current-button function.
 

Slot Access Functions

Inherited Slot Access Functions

See also

2024-2-19