Interface WindowHandle

All Superinterfaces:
AutoCloseable

public interface WindowHandle extends AutoCloseable
  • Method Details

    • isOpen

      boolean isOpen()
    • width

      int width()
    • height

      int height()
    • title

      String title()
    • show

      void show()
    • nativeHandle

      long nativeHandle()
      Returns the raw platform window handle (e.g., GLFW handle, SDL window pointer).
    • surfaceInfo

      default WindowHandle.SurfaceInfo surfaceInfo()
      Returns platform surface info for GPU surface creation. Returns null if the toolkit doesn't support surface info.
    • sizeRef

      default Reference<int[]> sizeRef()
      Versioned window size. Updates are detected via ref.update(). Returns null if the provider does not support versioned tracking.
    • focusedRef

      default Reference<Boolean> focusedRef()
      Versioned focus state. Returns null if not supported.
    • swapBuffers

      default void swapBuffers()
      Swaps front/back buffers. Called by the render device at end of frame.
    • set

      default <T> void set(PropertyKey<WindowHandle, T> key, T value)
    • get

      default <T> T get(PropertyKey<WindowHandle, T> key)
    • close

      void close()
      Specified by:
      close in interface AutoCloseable