Interface GLFWFramebufferSizeFun

All Superinterfaces:
Upcall
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 interface GLFWFramebufferSizeFun extends Upcall
typedef void (*GLFWFramebufferSizeFun)(GLFWwindow* window, int width, int height);
  • Field Details

    • DESCRIPTOR

      static final FunctionDescriptor DESCRIPTOR
      The function descriptor.
    • HANDLE

      static final MethodHandle HANDLE
      The method handle of the target method.
  • Method Details

    • alloc

      static MemorySegment alloc(Arena arena, GLFWFramebufferSizeFun func)
      Allocates GLFWFramebufferSizeFun.
      Parameters:
      arena - the arena
      func - the function
      Returns:
      the upcall stub
    • invoke

      void invoke(MemorySegment window, int width, int height)
      The target method of the upcall.
    • invoke_

      default void invoke_(MemorySegment window, int width, int height)
      The target method of the upcall.
    • stub

      default MemorySegment stub(Arena arena)
      Description copied from interface: Upcall
      Creates an upcall stub associated with the given arena using Linker::upcallStubRESTRICTED.
      Specified by:
      stub in interface Upcall
      Parameters:
      arena - the arena to be associated with the upcall stub
      Returns:
      a zero-length segment whose address is the address of the upcall stub