import { WindowBuilder } from "https://deno.land/x/sdl2@0.9.0/mod.ts";
A window builder to create a window.
Examples
Example 1
Example 1
const window = new WindowBuilder("Hello World", 800, 600);
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 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