Interface IGLFWFramebufferSizeFun

All Superinterfaces:
Callback
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 IGLFWFramebufferSizeFun extends Callback
IGLFWFramebufferSizeFun relies on preview features of the Java platform:
Programs can only use IGLFWFramebufferSizeFun when preview features are enabled.
Preview features may be removed in a future release, or upgraded to permanent features of the Java platform.
This is the function pointer type for framebuffer size callbacks. A framebuffer size callback function has the following signature:
@Invoker(IGLFWFramebufferSizeFun::invoke)
void functionName(MemorySegment window, int width, int height);
Since:
0.1.0
Author:
squid233
See Also:
  • Field Details

  • Method Details

    • invoke

      void invoke(MemorySegmentPREVIEW window, int width, int height)
      The function pointer type for framebuffer size callbacks.
      Parameters:
      window - The window whose framebuffer was resized.
      width - The new width, in pixels, of the framebuffer.
      height - The new height, in pixels, of the framebuffer.
    • descriptor

      default FunctionDescriptorPREVIEW descriptor()
      Description copied from interface: Callback
      Returns the function descriptor of this callback.
      Specified by:
      descriptor in interface Callback
      Returns:
      the function descriptor of this callback
    • handle

      Description copied from interface: Callback
      Finds the method handle from the given method handles lookup.
      Specified by:
      handle in interface Callback
      Parameters:
      lookup - the lookup
      Returns:
      the method handle
      Throws:
      NoSuchMethodException - if the method does not exist
      IllegalAccessException - if access checking fails, or if the method is static, or if the method's variable arity modifier bit is set and asVarargsCollector fails