Flexbox-subset layout engine.
Resolves an element tree against a viewport into a tree of
Tuix.Layout.Placed nodes with absolute {x, y, w, h} rectangles.
Supported: :flex_direction (:row / :column), :gap, :padding,
border insets, fixed and percentage sizes, :flex_grow, and cross-axis
stretch (the default for boxes without an explicit cross size).
Not yet supported: wrapping, justify_content / align_items variants.
Summary
Functions
Computes layout for an element tree within a width x height viewport.
Functions
@spec compute(Tuix.Element.t(), pos_integer(), pos_integer()) :: Tuix.Layout.Placed.t()
Computes layout for an element tree within a width x height viewport.
The root element behaves like the child of an implicit full-screen column box: explicit sizes are honored, otherwise it sizes to content, and its width stretches to the viewport (standard flexbox stretch).