Cranpose UI Layout
cranpose-ui-layout defines measurement, placement, alignment and arrangement
contracts for Cranpose widgets. Custom layout authors use Constraints,
Measurable, MeasureScope and Placeable. App developers usually use
Column, Row, Box and Layout from
cranpose.
Adjust child constraints
Constraints use logical pixels. A custom measure policy can deflate parent bounds before a child measure call:
use Constraints;
let parent = loose;
let child = parent.deflate;
let = child.constrain;
assert_eq!;
The feature set is empty. See the
Constraints API,
the layout guide
and the crate source.