Module layout
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 widget and its children, using absolute coordinates.
- Limits
- A set of size constraints for layouting.
Functions§
- atomic
- Computes the resulting
Sizethat fits theLimitsgiven some width and height requirements and no intrinsic size. - contained
- Computes the resulting
Sizethat fits theLimitsgiven some width and height requirements and a closure that produces the content inside the givenLimits. - next_
to_ each_ other - Lays out two children side by side in the provided
widget::Tree. - padded
- Computes the
Sizethat fits theLimitsgiven some width, height, andPaddingrequirements and a closure that produces the content inside the givenLimits. - positioned
- Computes a
paddedSizewith a positioning step. - sized
- Computes the resulting
Sizethat fits theLimitsgiven some width and height requirements and a closure that produces the intrinsicSizeinside the givenLimits.