# ui/autolayout (vanilla-engine 0.4.0)

> https://vanillapunch.com/docs/vanilla-engine/0.4.0/api/ui/autolayout/

Auto layout. (the original ui/autolayout, a Cassowary constraint solver based on Kiwi dual simplex)
- layoutvariable: unknowns the solver solves (handles that share the value)
- layoutterm, layoutexpression: coefficient * variable terms and linear expressions
- layoutconstraint, layoutrelation, layoutstrength, layoutpriority: constraints and relations, strengths, UIKit style priorities
- layoutconstraintaxis: horizontal and vertical axes (used by UINode's hugging and compression resistance priorities)
- layoutsymbol, layoutsymboltype, layoutrow: symbols and tableau rows inside the solver
- layoutsolver: the constraint solver (a handle shared by many nodes)
- Unlike the original, numbers are f64, and solver functions where the original throws return `Result<(), LayoutError>`.
