Class TouchpadEvent

All Implemented Interfaces:
PointerInterface

public class TouchpadEvent extends 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.

https://docs.gtk.org/gdk4/class.TouchpadEvent.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getGesturePhase

      public int getGesturePhase()
      Extracts the touchpad gesture phase from a touchpad event.
      Returns:
      the gesture phase of @event
    • getNFingers

      public int getNFingers()
      Extracts the number of fingers from a touchpad event.
      Returns:
      the number of fingers for @event
    • getPinchAngleDelta

      public double getPinchAngleDelta()
      Extracts the angle delta from a touchpad pinch event.
      Returns:
      the angle delta of @event
    • getPinchScale

      public double getPinchScale()
      Extracts the scale from a touchpad pinch event.
      Returns:
      the scale of @event
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()