Skip to main content

Module pane_measure

Module pane_measure 

Source
Expand description

How big each docked pane is drawn, for Pane layout (docs/specs/SPEC_AGENT_PANE_PLACEMENT_FLOATING_2026_11_22.md §2.3).

A docked pane’s pixel size is a layout result that only the window knows, so Pane layout asks each window for the panes of the tab it shows, in a measurepanes event, and the window answers with pane.floatplaced and sizes (the same request, wait and answer the floating panes use). A pane the window does not draw (its tab is not showing, the window is hidden or still starting) gets size: null and the reason, never a made-up size. share (the layout as stored) needs no window and is reported either way.

Constants§

WAIT 🔒
How long Pane layout waits for a window to say how big its panes are.

Functions§

answered 🔒
A window’s answer (pane.floatplaced with sizes). Whether a call was still waiting for it.
ask 🔒
Ask the window window_id how big it draws blocks, and wait for its answer.
report_docked 🔒
Put size ({ width, height }, CSS pixels as drawn) on every docked pane of each window’s showing tab, from the window’s own answer; any other docked pane, and any whose window does not answer, gets size: null and why.
showing_panes 🔒
The ids of the docked panes of a window’s showing tab (a floating pane has a rect, not a size), or none.
size_of 🔒
A pane’s size from what its window said: whole CSS pixels, or None when the window does not draw it.
waiters 🔒

Type Aliases§

Waiters 🔒
What a window’s answer is held in until the call that asked takes it.