Raxol.UI.Layout.Panels (Raxol v0.3.0)
View SourceHandles layout calculations for panel UI elements.
This module is responsible for:
- Panel border rendering
- Panel content layout
- Panel title positioning
- Panel-specific spacing and constraints
Summary
Functions
Measures the space required by a panel element.
Processes a panel element, calculating layout for it and its children.
Functions
Measures the space required by a panel element.
Parameters
panel
- The panel element to measureavailable_space
- The available space for the panel
Returns
The dimensions of the panel: %{width: w, height: h}
Processes a panel element, calculating layout for it and its children.
Parameters
panel
- The panel element to processspace
- The available space for the panelacc
- The accumulator for rendered elements
Returns
A list of positioned elements with absolute coordinates.