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

x/dwm/src/core/window.ts>DwmWindow

Deno Window Manager: Cross-platform window creation and management
Go to Latest
class DwmWindow
Abstract
import { DwmWindow } from "https://deno.land/x/dwm@0.1.0/src/core/window.ts";

Represents a Window

Constructors

new
DwmWindow(_options: CreateWindowOptions)

Properties

abstract
readonly
closed: boolean

Check if the window is closed

abstract
focused: boolean

Check if the window is focused

abstract
readonly
framebufferSize: Size

Window's framebuffer size

abstract
fullScreen: boolean

Check if the window is fullscreen

id

Window's unique identifier

abstract
maximized: boolean

Change whether the window is maximized

abstract
minimized: boolean

Change whether the window is minimized

abstract
readonly
nativeHandle: Deno.PointerValue

The window's pointer

abstract
opacity: number

Opacity of the window

abstract
position: Position

Window's position

abstract
readonly
shouldClose: boolean

Whether the window should close

abstract
size: Size

Window's size

abstract
title: string

Title of the window

abstract
visible: boolean

Change whether the window is visible

Methods

abstract
close(): void

Close the window

Create a VkSurfaceKHR for this window (Only for Vulkan)

abstract
makeContextCurrent(): void

Sets this window's context as the current context (Only for OpenGL)

abstract
requestUserAttention(): void

Requests the User's attention

abstract
setCursor(icon?: CursorIcon): void

Sets the cursor icon

abstract
swapBuffers(): void

Swaps the window's buffers (Only for OpenGL)