The winit window class.
new
WinitWindow(unnamed 0: { forceX11?: boolean; windowTitle?: string; windowIconPath?: string; width?: number; height?: number; presentationFormat?: GPUTextureFormat; setupFunction?: (device: GPUDevice,context: GPUCanvasContext,) => void; drawFunction?: (device: GPUDevice,context: GPUCanvasContext,) => void; resizeFunction?: () => void; })
The winit window constructor.
private
drawFunction: (device: GPUDevice,context: GPUCanvasContext,) => void
private
dylibPromise: Promise<winitDylib>
private
presentationFormat: GPUTextureFormat
private
resizeFunction: () => void
private
setupFunction: (device: GPUDevice,context: GPUCanvasContext,) => void
private
system: "win32"
| "cocoa"
| "wayland"
| "x11"
| null
private
windowIconPath: string | null
private
windowTitle: string