Raxol.Renderer.Layout (Raxol v0.3.0)

View Source

Handles layout calculations for UI elements.

This module translates the logical layout (panels, rows, columns) into absolute positions for rendering.

Summary

Functions

Applies layout to a view, calculating absolute positions for all elements.

Functions

apply_layout(view, dimensions)

Applies layout to a view, calculating absolute positions for all elements.

Parameters

  • view - The view to calculate layout for
  • dimensions - Terminal dimensions %{width: w, height: h}

Returns

A list of positioned elements with absolute coordinates.