Module cosmic::iced_runtime::core::layout

source ·
Expand description

Position your widgets properly.

Modules§

  • Distribute elements using a flex-based layout.

Structs§

  • The bounds of a Node and its children, using absolute coordinates.
  • A set of size constraints for layouting.
  • The bounds of an element and its children.

Functions§

  • Computes the resulting Node that fits the Limits given some width and height requirements and no intrinsic size.
  • Computes the resulting Node that fits the Limits given some width and height requirements and a closure that produces the content Node inside the given Limits.
  • Produces a Node with two children nodes one right next to each other.
  • Computes the Node that fits the Limits given some width, height, and Padding requirements and a closure that produces the content Node inside the given Limits.
  • Computes a padded Node with a positioning step.
  • Computes the resulting Node that fits the Limits given some width and height requirements and a closure that produces the intrinsic Size inside the given Limits.