gtk.gesture_swipe
Module for GestureSwipe class
Types 3
gtk.gesture_swipe.GestureSwipe is a gtk.gesture.Gesture for swipe gestures.
After a press/move/.../move/release sequence happens, the gtk.gesture_swipe.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, gtk.gesture_swipe.GestureSwipe.getVelocity can be called in a gtk.gesture.Gesture.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)Gets the current velocity.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.Fluent builder implementation template for gtk.gesture_swipe.GestureSwipe
Fluent builder for gtk.gesture_swipe.GestureSwipe
Methods
GestureSwipe build()Create object from builder. Returns: New object