cosmic::iced_renderer::graphics::core::layout::flex

Function resolve

source
pub fn resolve<Message, Theme, Renderer>(
    axis: Axis,
    renderer: &Renderer,
    limits: &Limits,
    width: Length,
    height: Length,
    padding: Padding,
    spacing: f32,
    align_items: Alignment,
    items: &[Element<'_, Message, Theme, Renderer>],
    trees: &mut [Tree],
) -> Node
where Renderer: Renderer,
Expand description

Computes the flex layout with the given axis and limits, applying spacing, padding and alignment to the items as needed.

It returns a new layout Node.