Available on crate feature
advanced
only.Expand description
Position your widgets properly.
Modules§
- flex
- Distribute elements using a flex-based layout.
Structs§
- Layout
- The bounds of a
Node
and its children, using absolute coordinates. - Limits
- A set of size constraints for layouting.
- Node
- The bounds of an element and its children.
Functions§
- atomic
- Computes the resulting
Node
that fits theLimits
given some width and height requirements and no intrinsic size. - contained
- Computes the resulting
Node
that fits theLimits
given some width and height requirements and a closure that produces the contentNode
inside the givenLimits
. - next_
to_ each_ other - Produces a
Node
with two children nodes one right next to each other. - padded
- Computes the
Node
that fits theLimits
given some width, height, andPadding
requirements and a closure that produces the contentNode
inside the givenLimits
. - positioned
- Computes a
padded
Node
with a positioning step. - sized
- Computes the resulting
Node
that fits theLimits
given some width and height requirements and a closure that produces the intrinsicSize
inside the givenLimits
.