gtk.gesture_pan
Module for [GesturePan] class
Types 3
#GtkGesturePan is a #GtkGesture implementation able to recognize pan gestures, those are drags that are locked to happen along one axis. The axis that a #GtkGesturePan handles is defined at construct time, and can be changed through [gtk.gesture_pan.GesturePan.setOrientation].
When the gesture starts to be recognized, #GtkGesturePan will attempt to determine as early as possible whether the sequence is moving in the expected direction, and denying the sequence if this does not happen.
Once a panning gesture along the expected axis is recognized, the #GtkGesturePan::pan signal will be emitted as input events are received, containing the offset in the given axis.
Methods
GesturePan self()Returns `this`, for use in `with` statements.GesturePanGidBuilder builder()Get builder for [gtk.gesture_pan.GesturePan] Returns: New builder objectgtk.types.Orientation orientation() @propertyGet `orientation` property. Returns: The expected orientation of pan gestures.void orientation(gtk.types.Orientation propval) @propertySet `orientation` property. Params: propval = The expected orientation of pan gestures.gtk.types.Orientation getOrientation()Returns the orientation of the pan gestures that this gesture expects. Returns: the expected orientation for pan gesturesvoid setOrientation(gtk.types.Orientation orientation)Sets the orientation to be expected on pan gestures.gulong connectPan(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] == gtk.types.PanDirection)))
&& (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_pan.GesturePan)))
&& Parameters!T.length < 4)Connect to `Pan` signal.Constructors
this(gtk.widget.Widget widget, gtk.types.Orientation orientation)Returns a newly created #GtkGesture that recognizes pan gestures.Methods
T orientation(gtk.types.Orientation propval)Set `orientation` property. Params: propval = The expected orientation of pan gestures. Returns: Builder instance for fluent chainingFluent builder for [gtk.gesture_pan.GesturePan]
Methods