:right-sidebar: True

TouchpadEvent
===================================================================

.. currentmodule:: gi.repository.Gdk





.. class:: TouchpadEvent(*args, **kwargs)
   :no-contents-entry:


Superclasses: :class:`~gi.repository.Gdk.Event`





An event related to a gesture on a touchpad device.

Unlike touchscreens, where the windowing system sends basic
sequences of begin, update, end events, and leaves gesture
recognition to the clients, touchpad gestures are typically
processed by the system, resulting in these events.




Methods
-------

.. rst-class:: interim-class

.. class:: TouchpadEvent
   :no-index:


   .. method:: get_deltas() -> ~typing.Tuple[float, float]

      Extracts delta information from a touchpad event.









   .. method:: get_gesture_phase() -> ~gi.repository.Gdk.TouchpadGesturePhase

      Extracts the touchpad gesture phase from a touchpad event.









   .. method:: get_n_fingers() -> int

      Extracts the number of fingers from a touchpad event.









   .. method:: get_pinch_angle_delta() -> float

      Extracts the angle delta from a touchpad pinch event.









   .. method:: get_pinch_scale() -> float

      Extracts the scale from a touchpad pinch event.