Skip to main content

Module layout

Module layout 

Expand description

Reference geometry for the shell’s hand-composed chrome.

These are the sizes and distances that are not a control height, a panel width or a spacing step: a resize grip, a pinned avatar, a strip switcher card. They live here, beside the other tokens, so a shell file names the token instead of restating the number. Layout::BASE is the unscaled reference, readable from a const context.

Breakpoint lives here too, because it is the one size class every surface shares: it is a token’s answer about a rect, not a number an app keeps.

Structs§

BreakpointTracker
The class a surface holds while it lays out, re-derived from the rect of every pass (Widget::apply_layout).
Layout
Reference geometry (unscaled) for the shell’s hand-composed chrome.

Enums§

Breakpoint
The one size class a surface derives from the rect it is laid out in.