Returns a newly created #GtkGesture that recognizes pan gestures.
Connect to Pan signal.
Returns the orientation of the pan gestures that this gesture expects.
Returns this, for use in with statements.
Sets the orientation to be expected on pan gestures.
Get orientation property.
Set orientation property.
Get builder for gtk.gesture_pan.GesturePan
Returns this, for use in with statements.
Get builder for gtk.gesture_drag.GestureDrag
If the gesture is active, this function returns true and fills in x and y with the coordinates of the current point, as an offset to the starting drag point.
If the gesture is active, this function returns true and fills in x and y with the drag start coordinates, in window-relative coordinates.
Connect to DragBegin signal.
Connect to DragEnd signal.
Connect to DragUpdate signal.
#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.