Sets our main struct and passes it to the parent class.
Returns a newly created GtkGesture that recognizes pan gestures.
Emitted once a panning gesture along the expected axis is detected.
Get the main Gtk struct
Returns the orientation of the pan gestures that this @gesture expects.
the main Gtk struct as a void*
Sets the orientation to be expected on pan gestures.
the main Gtk struct
the main Gtk struct
Get the main Gtk struct
the main Gtk struct as a void*
Gets the offset from the start point.
Gets the point where the drag started.
Emitted whenever dragging starts.
Emitted whenever the dragging is finished.
Emitted whenever the dragging point moves.
GtkGesturePan is a GtkGesture for pan gestures.
These 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 [method@Gtk.GesturePan.set_orientation].
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 [signal@Gtk.GesturePan::pan] signal will be emitted as input events are received, containing the offset in the given axis.