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
GType _gType() @property
GestureSwipe self()Returns `this`, for use in `with` statements.
GestureSwipeGidBuilder builder()Get builder for [gtk.gesture_swipe.GestureSwipe] Returns: New builder object
bool getVelocity(out double velocityX, out double velocityY)If the gesture is recognized, this function returns true and fill in velocity_x and velocity_y 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(void * ptr, Flag!"Take" take)
this(gtk.widget.Widget widget)Returns a newly created #GtkGesture that recognizes swipes.
Methods
GestureSwipe build()Create object from builder. Returns: New object