zng::wrap

Function lazy_size

source
pub fn lazy_size(
    children_len: impl IntoVar<usize>,
    spacing: impl IntoVar<GridSpacing>,
    child_size: impl IntoVar<Size>,
) -> impl UiNode
Expand description

Create a node that estimates the size of wrap panel children.

The estimation assumes that all items have a size of child_size.