GesturePan

class GesturePan(**properties: Any)

Superclasses: GestureDrag, GestureSingle, Gesture, EventController, Object

Constructors:

GesturePan(**properties)
new(orientation:Gtk.Orientation) -> Gtk.Gesture

Constructors

class GesturePan
classmethod new(orientation: Orientation) Gesture

Returns a newly created GtkGesture that recognizes pan gestures.

Parameters:

orientation – expected orientation

Methods

class GesturePan
get_orientation() Orientation

Returns the orientation of the pan gestures that this gesture expects.

set_orientation(orientation: Orientation) None

Sets the orientation to be expected on pan gestures.

Parameters:

orientation – expected orientation

Properties

class GesturePan
props.orientation: Orientation

The expected orientation of pan gestures.

Signals

class GesturePan.signals
pan(direction: PanDirection, offset: float) None

Emitted once a panning gesture along the expected axis is detected.

Parameters:
  • direction – current direction of the pan gesture

  • offset – Offset along the gesture orientation