Interface GestureClick.UnpairedReleaseCallback

All Superinterfaces:
FunctionPointer
Enclosing class:
GestureClick
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface GestureClick.UnpairedReleaseCallback extends FunctionPointer

Functional interface declaration of the UnpairedReleaseCallback callback.

See Also:
  • Method Details

    • run

      void run(double x, double y, int button, @Nullable EventSequence sequence)

      Emitted whenever the gesture receives a release event that had no previous corresponding press.

      Due to implicit grabs, this can only happen on situations where input is grabbed elsewhere mid-press or the pressed widget voluntarily relinquishes its implicit grab.

    • upcall

      default void upcall(MemorySegment sourceGestureClick, double x, double y, int button, MemorySegment sequence)
      The upcall method is called from native code. The parameters are marshaled and run(double, double, int, EventSequence) is executed.
    • toCallback

      default MemorySegment toCallback(Arena arena)
      Creates a native function pointer to the upcall(MemorySegment, double, double, int, MemorySegment) method.
      Specified by:
      toCallback in interface FunctionPointer
      Parameters:
      arena - the arena in which the function pointer is allocated
      Returns:
      the native function pointer