Skip to main content
Module

x/sdl2/mod.ts>WindowBuilder

SDL2 module for Deno
Go to Latest
class WindowBuilder
import { WindowBuilder } from "https://deno.land/x/sdl2@0.8.0/mod.ts";

A window builder to create a window.

Examples

Example 1

const window = new WindowBuilder("Hello World", 800, 600);

Constructors

new
WindowBuilder(
title: string,
width: number,
height: number,
)

Properties

private
flags: number

Methods

Set the window to be always on top.

Set the window to be borderless.

Build a window.

Set the window to be a foreign window.

Set the window to be fullscreen.

window is not visible

Window should be created in high-DPI mode.

window has input focus

window has grabbed keyboard input

window is maximized

window usable for Metal view

window is minimized

window has mouse captured (unrelated to MOUSE_GRABBED)

window has mouse focus

window has grabbed mouse input

Window usable with an OpenGL context

window should be treated as a popup menu

Set the window to be resizable.

window should not be added to the taskbar

window should be treated as a tooltip

window with transparent buffer

window should be treated as a utility window

window usable for Vulkan surface