Expand description
A workspace’s arrangement: which panels sit in which area, in which
tabs and splits, which ones were detached into auxiliary windows and on
which screen. Saved as the layout document, restored at start-up,
repaired when it no longer matches the panels or the screens.
Structs§
- Anchor
- The workbench edges a floating panel sticks to, horizontally and vertically, and its distance to each: when the workbench changes size, an anchored edge keeps that distance.
- Auxiliary
- A panel detached into its own window, and the panels that joined it there as tabs.
- Dormant
- The place a panel no longer declared had (
SavedLayout::dormant). - Floating
Group - Panels floating over the interface as one unit: a palette alone (a
group of one), or palettes stacked in a column or held as tabs. A
stack’s member may itself be a tab group (
Member::tabs): one level of nesting, a tab group never holding a stack. The group moves, pins, anchors and is resized as one; each member rolls up on its own. - Layout
- Member
- One member of a floating group: a palette, or palettes held as tabs in one slot of a stack (a tab group nested in the stack, one level only).
- Panel
Instance - An instance of a panel declared with several (
Layout::instances). - Saved
Layout - A layout as saved: the layout, and the places of panels no longer
declared (their plugin is off, ADR 0028), kept so that a panel
declared again goes back where it was (
Layout::repair_dormant). Its document is the layout’s (schema), the places underdormant: a layout saved without them reads as one with none. - Window
Areas - An application window’s own areas: its centre, start and end sides and
bottom, each with its tabs and splits, as the main window has them
(
Layout::windows).
Enums§
- Anchor
Edge - Which workbench edge a floating panel sticks to, on one axis.
- Arrangement
- How the members of a floating group are laid out.
- Dormant
Place - Where a dormant panel was.
- Join
- Where a palette joins another one’s group: above it, below it (a stack), or as a tab of it.
- Node
- Tabs, splits and grids of one area.
- Placement
- Where a side area lies.
Constants§
- MAIN_
WINDOW - The main application window’s id in a layout: its areas, its detached
windows and its floating groups (
Layout::panels_in_window); every other window is named by its own id (Layout::windows).
Functions§
- schema
- The
layoutdocument. Version 2 named the areas by start and end (start_side) instead of primary and secondary; version 3 gave each application window areas of its own (windows), none in an older one.