import { DwmWindow } from "https://deno.land/x/dwm@0.2.0/src/core/window.ts";
Represents a Window
Constructors
new
DwmWindow(_options: CreateWindowOptions)Properties
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
getMonitor(): DwmMonitor | undefinedGet the monitor that the window is on (undefined if not fullscreen)
abstract
makeContextCurrent(): voidSets this window's context as the current context (Only for OpenGL)
abstract
requestUserAttention(): voidRequests the User's attention
abstract
setAspectRatio(numerator: number, denominator: number): voidSet the window's aspect ratio
abstract
setCursor(icon?: CursorIcon): voidSets the cursor icon
abstract
setMonitor(monitor: DwmMonitor | undefined,
xpos?: number,
ypos?: number,
width?: number,
height?: number,
refreshRate?: number,
Set the monitor that the window is on
abstract
setSizeLimits(minWidth: number,
minHeight: number,
maxWidth: number,
maxHeight: number,
Set the window's size limits
abstract
swapBuffers(): voidSwaps the window's buffers (Only for OpenGL)