namespaceDisplay Control8 functions, 9 propertiesUI apps only
datumhue.screen
Window dimensions, fullscreen, resolution, stretch/zoom, and monitor information. Scope follows the caller: bootstrap controls the workstation window, while a regular app controls its own root panel. The request_* functions are proposals — bootstrap's apply at the end of the frame (in a browser the page sets the workstation's size, so its request_resolution changes nothing), and an app's are sent to its window manager to answer (see the app_*_request events and the wm namespace).
Whether this app asks the host to keep the display awake. While any running app holds true, the host inhibits the machine's screensaver and display sleep; the request is released when the app clears it or exits. Best-effort: where the system offers no way to keep the display awake, the value still reads back as set and nothing else changes.
is_fullscreen
boolean
read-only
Read-only. Whether the workstation window is in full screen, as the window system reports it: it turns true once a full-screen request has landed, a few frames after the call, and false after any exit, including ones the app did not make (the browser's Esc, an OS shortcut, the window manager). A regular app's maximized panel does not count.
fullscreen_available
boolean
read-only
Read-only. Whether this host can put the workstation in full screen. Always true natively; false in a browser without full-screen support (iPhone Safari) or where the page is not allowed to use it. While this is false the bootstrap's fullscreen raises for a full-screen mode, and leaving full screen does nothing.
zoom
number
read-only
Current end-user comfort zoom multiplier.
width
number
read-only
Drawable surface width in UI px — the app's own panel (the whole window for bootstrap).
height
number
read-only
Drawable surface height in UI px — the app's own panel (the whole window for bootstrap).
Enter a full-screen mode, or leave it with "windowed" or false. It raises for true, a non-string or an unknown mode. For the bootstrap this is the workstation window: the change lands a few frames later (read is_fullscreen), on the monitor monitor_index names, 1-based as monitors() lists them (default: the window's current monitor; a browser uses the screen showing the page). The bootstrap's call also raises for "exclusive" in a browser, for a full-screen mode while fullscreen_available is false (leaving does nothing there), and for a monitor_index outside monitors(). In a browser without a recent tap, click or key press (after a gamepad press), the call returns, the workstation shows its "Continue" chip, and full screen starts on that chip's tap, click or key press; is_fullscreen turns true then. A regular app's call asks its window manager to maximize or restore the app's panel instead (app_fullscreen_request).
Request a size for the caller's window. The bootstrap's sizes the workstation window while it is windowed; a full-screen mode keeps the monitor's size, and the request applies again on the return to windowed. In a browser the page sets the workstation's size, so the bootstrap's request changes nothing there. A regular app's request goes to the window manager framing it (app_resize_request); without a frame it resizes the app's own root panel.