import { DwmWindow } from "https://deno.land/x/dwm@0.1.0/src/core/mod.ts";
Represents a Window
Constructors
new
DwmWindow(_options: CreateWindowOptions)Properties
abstract
readonly
framebufferSize: SizeWindow's framebuffer size
abstract
readonly
nativeHandle: Deno.PointerValueThe window's pointer
abstract
position: PositionWindow's position
abstract
size: SizeWindow's size
Methods
abstract
close(): voidClose the window
abstract
createSurface(instance: Deno.PointerValue, allocator?: Deno.PointerValue): Deno.PointerValueCreate a VkSurfaceKHR for this window (Only for Vulkan)
abstract
makeContextCurrent(): voidSets this window's context as the current context (Only for OpenGL)
abstract
requestUserAttention(): voidRequests the User's attention
abstract
setCursor(icon?: CursorIcon): voidSets the cursor icon
abstract
swapBuffers(): voidSwaps the window's buffers (Only for OpenGL)