Interface Entry.IconReleaseCallback

All Superinterfaces:
FunctionPointer
Enclosing class:
Entry
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 Entry.IconReleaseCallback extends FunctionPointer

Functional interface declaration of the IconReleaseCallback callback.

See Also:
  • Method Details

    • run

      void run(EntryIconPosition iconPos)
      Emitted on the button release from a mouse click over an activatable icon.
    • upcall

      default void upcall(MemorySegment sourceEntry, int iconPos)
      The upcall method is called from native code. The parameters are marshaled and run(EntryIconPosition) is executed.
    • toCallback

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