It derives from <GtkGesture>.
A <GtkGesture> subclass optimized for singe-touch
and mouse gestures.
Under interaction, these gestures stick to the first interacting
sequence, which is accessible through gesture-single:get-current-sequence while the
gesture is being interacted with.
By default gestures react to both GDK_BUTTON_PRIMARY and touch
events. gesture-single:set-touch-only can be used to change
the touch behavior. Callers may also specify a different mouse button
number to interact with through gesture-single:set-button, or react to any mouse button by
setting it to 0. While the gesture is active, the button being
currently pressed can be known through gesture-single:get-current-button.
Mouse button number to listen to, or 0 to listen for any button.
Its value is an unsigned 32-bit integer.
Set it with (set! (gesture-single:button self) value).
Whether the gesture is exclusive.
Exclusive gestures only listen to pointer and pointer emulated events.
Its value is a boolean.
Set it with (set! (gesture-single:exclusive self) value).
Whether the gesture handles only touch events.
Its value is a boolean.
Set it with (set! (gesture-single:touch-only self) value).
Returns the button number self listens for.
If this is 0, the gesture reacts to any button press.
Passed: a <GtkGestureSingle>.
Returned: an unsigned 32-bit integer.
The button number, or 0 for any button
Returns the button number currently interacting with self, or 0 if there is none.
Passed: a <GtkGestureSingle>.
Returned: an unsigned 32-bit integer.
The current button number
Returns the event sequence currently interacting with self.
This is only meaningful if gesture:is-active? returns #t.
Passed: a <GtkGestureSingle>.
Returned: a <GdkEventSequence>, or
#f.
the current sequence
Gets whether a gesture is exclusive.
For more information, see gesture-single:set-exclusive.
Passed: a <GtkGestureSingle>.
Returned: a boolean.
Whether the gesture is exclusive
Returns #t if the gesture is only triggered by touch events.
Passed: a <GtkGestureSingle>.
Returned: a boolean.
#t if the gesture only handles touch events
Sets the button number self listens to.
If non-0, every button press from a different button number will be ignored. Touch events implicitly match with button 1.
Passed: a <GtkGestureSingle>.
Passed: an unsigned 32-bit integer.
button number to listen to, or 0 for any button
Sets whether self is exclusive.
An exclusive gesture will only handle pointer and "pointer emulated" touch events, so at any given time, there is only one sequence able to interact with those.
Passed: a <GtkGestureSingle>.
Passed: a boolean.
#t to make self exclusive
Sets whether to handle only touch events.
If touch-only is #t, self will only handle events of
type touch-begin,
touch-update or
touch-end. If #f, mouse events will
be handled too.
Passed: a <GtkGestureSingle>.
Passed: a boolean.
whether self handles only touch events