Raxol.UI.Layout.Elements (Raxol v2.6.0)

View Source

Handles measurement of basic UI elements like text, labels, boxes, and checkboxes.

Optionally accepts a prepared_cache (built by the Preparer phase) to skip re-measuring text whose display width was computed during prepare. The cache is owned by Raxol.UI.Layout.Engine.apply_layout/3 and passed through explicitly so the data flow is visible.

Summary

Functions

measure(type, attrs_map, prepared_cache \\ nil)