gtk.gesture_swipe
Module for [GestureSwipe] class
Types 3
#GtkGestureSwipe is a #GtkGesture implementation able to recognize swipes, after a press/move/.../move/release sequence happens, the #GtkGestureSwipe::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, [gtk.gesture_swipe.GestureSwipe.getVelocity] can be called on eg. a #GtkGesture::update handler.
All velocities are reported in pixels/sec units.
Methods
GestureSwipe self()Returns `this`, for use in `with` statements.GestureSwipeGidBuilder builder()Get builder for [gtk.gesture_swipe.GestureSwipe] Returns: New builder objectbool getVelocity(out double velocityX, out double velocityY)If the gesture is recognized, this function returns true and fill in velocityx and velocityy with the recorded velocity, as per the last event(s) processed.gulong connectSwipe(T)(T callback, Flag!"After" after = No.After) if (isCallable!T
&& is(ReturnType!T == void)
&& (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] == double)))
&& (Parameters!T.length < 2 || (ParameterStorageClassTuple!T[1] == ParameterStorageClass.none && is(Parameters!T[1] == double)))
&& (Parameters!T.length < 3 || (ParameterStorageClassTuple!T[2] == ParameterStorageClass.none && is(Parameters!T[2] : gtk.gesture_swipe.GestureSwipe)))
&& Parameters!T.length < 4)Connect to `Swipe` signal.Constructors
this(gtk.widget.Widget widget)Returns a newly created #GtkGesture that recognizes swipes.Fluent builder for [gtk.gesture_swipe.GestureSwipe]
Methods