Class GestureRotate

All Implemented Interfaces:
PointerInterface

public class GestureRotate extends Gesture
`GtkGestureRotate` is a `GtkGesture` for 2-finger rotations.

Whenever the angle between both handled sequences changes, the
[signal@Gtk.GestureRotate::angle-changed] signal is emitted.

https://docs.gtk.org/gtk4/class.GestureRotate.html

  • Field Details

  • Constructor Details

    • GestureRotate

      public GestureRotate(PointerContainer pointer)
    • GestureRotate

      public GestureRotate()
      Returns a newly created `GtkGesture` that recognizes 2-touch
      rotation gestures.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getAngleDelta

      public double getAngleDelta()
      Gets the angle delta in radians.

      If @gesture is active, this function returns the angle difference
      in radians since the gesture was first recognized. If @gesture is
      not active, 0 is returned.
      Returns:
      the angle delta in radians
    • onAngleChanged

      public SignalHandler onAngleChanged(GestureRotate.OnAngleChanged signal)
      Connect to signal "angle-changed".
      See GestureRotate.OnAngleChanged.onAngleChanged(double, double) for signal description.
      Field SIGNAL_ON_ANGLE_CHANGED contains original signal name and can be used as resource reference.
      Parameters:
      signal - callback function (lambda).
      Returns:
      SignalHandler. Can be used to disconnect signal and to release callback function.
    • 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()