Skip to main content

layout_grouped

Function layout_grouped 

Source
pub fn layout_grouped(
    container: &Container,
    elements: &[Element],
    groups: &[Group],
    previous: Option<&Layout>,
) -> Layout
Expand description

Lays elements out in container, in groups.

As layout, but packing is dense only within each Group and within each run of loose elements between groups: each starts on a new band of rows below everything before it. A group’s header, if it has one, takes a band of its own at the group’s top; pins count from the top of the element’s band (Placement::band_top). Groups that reach past the elements or cross another group’s boundary are ignored (GroupPlacement::ignored).