WindowDesc¶
Import: import system.window;
Read the usage guide for examples and common tasks. This reference lists the public declarations for this part of the library. See Reading API signatures for parameter and result notation.
WindowDesc¶
The settings a new window is created with. Construct one with a title and content size, then chain the settings you want to change: WindowDesc("Game", 1280, 720).resizable(false).fullscreen(true).
constructor¶
Describes a resizable, windowed window with title and a content area of width by height logical pixels. Window.open rejects non-positive sizes.
title¶
Title shown in the title bar, or as the page title in a browser.
width¶
Requested content width in logical pixels.
height¶
Requested content height in logical pixels.
is_resizable¶
Whether the user can resize the window. Defaults to true.
is_fullscreen¶
Whether the window starts fullscreen on the primary monitor. Defaults to false.
wants_vsync¶
Whether a GPU surface created for this window waits for the display's vertical refresh. Defaults to true. The window never draws by itself, so only GPU surfaces read this hint.
resizable¶
Sets whether the user can resize the window, and returns this description.
fullscreen¶
Sets whether the window starts fullscreen, and returns this description.
vsync¶
Sets the vertical-sync hint for GPU surfaces, and returns this description.