Skip to main content

Module cover

Module cover 

Source
Expand description

Whether app windows fill a screen. On macOS a zoomed window (a double click on its title bar) leaves the menu bar and the Dock showing, so the wallpaper’s window never reports itself hidden: the Mac host also asks where the other apps’ windows are and treats a screen whose usable area they all but fill (one zoomed window, or tiles side by side) as covered.

Structs§

Rect
A rectangle in one coordinate system (the Mac host: points, top-left origin, as the window server gives window bounds).

Constants§

FILLED
From this share of a screen’s usable area covered, the screen counts as covered: a zoomed or maximized window, or windows tiled side by side (with the small gaps tiling leaves).

Functions§

covered_share
The share of area the windows cover together, sampled on a grid.
filled
Whether the windows all but fill area.