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).

Enums§

Backing
What goes behind a screen’s menu bar.

Constants§

ALMOST_FILLED
From this share covered, the menu bar above the windows is made solid: an almost maximized window too, with some desktop around it.
CORNERS
How far below the menu bar a window’s rounded corners reach, in points.
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§

backing
The backing for windows so, on a screen whose usable part is area.
covered_share
The share of area the windows cover together, sampled on a grid.
filled
Whether the windows all but fill area.