Sets our main struct and passes it to the parent class.
Returns a newly created GtkGesture that recognizes swipes.
Emitted when the recognized gesture is finished.
Get the main Gtk struct
the main Gtk struct as a void*
Gets the current velocity.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Returns the button number @gesture listens for.
Returns the button number currently interacting with @gesture, or 0 if there is none.
Returns the event sequence currently interacting with @gesture.
Gets whether a gesture is exclusive.
Returns %TRUE if the gesture is only triggered by touch events.
Sets the button number @gesture listens to.
Sets whether @gesture is exclusive.
Sets whether to handle only touch events.
GtkGestureSwipe is a GtkGesture for swipe gestures.
After a press/move/.../move/release sequence happens, the [signal@Gtk.GestureSwipe::swipe] signal will be emitted, providing the velocity and directionality of the sequence at the time it was lifted.
If the velocity is desired in intermediate points, [method@Gtk.GestureSwipe.get_velocity] can be called in a [signal@Gtk.Gesture::update] handler.
All velocities are reported in pixels/sec units.