Layout

Dock workspaces

Dock, collapse, float, move, and restore caller-owned panes.

Generated previewCharm
Dedicated Dock workspaces example rendered in the Charm skin

The site build compiles the dedicated Ada component example, constructs Dock workspaces through its public API, and exports that exact styled surface. Read the capture source.

When to use it

Use a dock workspace when users must reorganize major tool panes while the application retains global ownership.

State and ownership

The Flyology_TUI.Components.Dock_Workspaces package defines this component.

At most one pane occupies each edge. Floating panes retain their return edge, and an immutable presentation aligns render and hit regions.

  • The application model owner applies updates during serial event dispatch.
  • Appearance and skin values are borrowed only while the component renders.

Input and updates

Headers support mouse drag and keyboard docking. Collapsed rails remain focusable, and matching release always clears capture.

Integration sequence

  1. Create the bounded model and populate it with caller-owned data.
  2. Route the current keyboard or local mouse event through the component handler.
  3. Apply the typed result, then render from the updated model with the current appearance.

See the linked package reference for its exact declarations and contracts.

Responsive and accessible behavior

  • Use dimensions and regions from the current layout or presentation value.
  • When a component owns mouse capture, route its matching release even when the pointer leaves the original bounds.
  • Retain a glyph, label, border, or text-attribute cue when the terminal reduces color.