:right-sidebar: True GesturePan =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: GesturePan(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.GestureDrag`, :class:`~gi.repository.Gtk.GestureSingle`, :class:`~gi.repository.Gtk.Gesture`, :class:`~gi.repository.Gtk.EventController`, :class:`~gi.repository.GObject.Object` :Constructors: :: GesturePan(**properties) new(orientation:Gtk.Orientation) -> Gtk.Gesture Constructors ------------ .. rst-class:: interim-class .. class:: GesturePan :no-index: .. classmethod:: new(orientation: ~gi.repository.Gtk.Orientation) -> ~gi.repository.Gtk.Gesture Returns a newly created ``GtkGesture`` that recognizes pan gestures. :param orientation: expected orientation Methods ------- .. rst-class:: interim-class .. class:: GesturePan :no-index: .. method:: get_orientation() -> ~gi.repository.Gtk.Orientation Returns the orientation of the pan gestures that this ``gesture`` expects. .. method:: set_orientation(orientation: ~gi.repository.Gtk.Orientation) -> None Sets the orientation to be expected on pan gestures. :param orientation: expected orientation Properties ---------- .. rst-class:: interim-class .. class:: GesturePan :no-index: .. attribute:: props.orientation :type: ~gi.repository.Gtk.Orientation The expected orientation of pan gestures. Signals ------- .. rst-class:: interim-class .. class:: GesturePan.signals :no-index: .. method:: pan(direction: ~gi.repository.Gtk.PanDirection, offset: float) -> None Emitted once a panning gesture along the expected axis is detected. :param direction: current direction of the pan gesture :param offset: Offset along the gesture orientation