Interface WindowHandle
- All Superinterfaces:
AutoCloseable
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordPlatform-specific surface information for WebGPU/Vulkan surface creation. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Versioned focus state.default <T> Tget(PropertyKey<WindowHandle, T> key) intheight()booleanisOpen()longReturns the raw platform window handle (e.g., GLFW handle, SDL window pointer).default <T> voidset(PropertyKey<WindowHandle, T> key, T value) voidshow()default Reference<int[]> sizeRef()Versioned window size.default WindowHandle.SurfaceInfoReturns platform surface info for GPU surface creation.default voidSwaps front/back buffers.title()intwidth()
-
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
Returns platform surface info for GPU surface creation. Returns null if the toolkit doesn't support surface info. -
sizeRef
Versioned window size. Updates are detected viaref.update(). Returns null if the provider does not support versioned tracking. -
focusedRef
-
swapBuffers
default void swapBuffers()Swaps front/back buffers. Called by the render device at end of frame. -
set
-
get
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-