Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

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

Deno Window Manager: Cross-platform window creation and management
Go to Latest
interface CreateWindowOptions
import { type CreateWindowOptions } from "https://deno.land/x/dwm@0.2.0/src/core/window.ts";

Properties

optional
title: string

Title of the window

optional
width: number

Window's width

optional
height: number

Window's height

optional
maximized: boolean

Whether the window is maximized

optional
minimized: boolean

Whether the window is minimized

optional
focused: boolean

Whether the window is focused

optional
visible: boolean

Window's visibility

optional
resizable: boolean

Whether the window is resizable

optional
autoExitEventLoop: boolean

Whether event loop should exit when window is closed. Defaults to true. Only works for non-child windows.

optional
glVersion: [number, number] | string

Which GL version to use

optional
gles: boolean

Should GLES be used (only for OpenGL)

optional
vsync: boolean

Whether to limit the number of frames per second (only for OpenGL)

optional
noClientAPI: boolean

Whether to not use any Client API.

optional
removeDecorations: boolean

Remove decorations from the window (title, frame, etc)

optional
transparent: boolean

Whether the window should be transparent

optional
floating: boolean

Whether the window is a floating window/ topmost window