Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/dwm/src/platform/glfw/window.ts>WindowGlfw

Deno Window Manager: Cross-platform window creation and management
Latest
class WindowGlfw
extends DwmWindow
import { WindowGlfw } from "https://deno.land/x/dwm@0.3.6/src/platform/glfw/window.ts";

Constructors

new
WindowGlfw(options?: CreateWindowOptions)

Properties

_inputState: Record<string, any>
readonly
closed
readonly
contentScale
focused: boolean
readonly
framebufferSize
readonly
frameSize
readonly
fullScreen
maximized: boolean
minimized: boolean
readonly
nativeHandle
readonly
noClientAPI
opacity: number
position: Position
readonly
shouldClose
size: Size
title
visible: boolean

Methods

getMonitor(): DwmMonitor | undefined
setAspectRatio(numerator: number, denominator: number)
setCursor(icon?: CursorIcon | undefined)
setCursorPos(x: number, y: number)
setCustomCursor(
image: Uint8Array,
hotspot: Size,
position: Position,
)
setIcon(image: ImageStruct): void
setIcon(image: Uint8Array, size: Size): void
setInputMode(mode: InputMode, value: InputModeValue | boolean)
setMonitor(
monitor?: DwmMonitor,
x?: number,
y?: number,
width?: number,
height?: number,
refreshRate?: number,
)
setSizeLimits(
minWidth: number,
minHeight: number,
maxWidth: number,
maxHeight: number,
)