zng_wgt_wrap

Function lazy_sample

source
pub fn lazy_sample(
    children_len: impl IntoVar<usize>,
    spacing: impl IntoVar<GridSpacing>,
    child_sample: impl UiNode,
) -> impl UiNode
Expand description

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

The estimation assumes that all items have the size of child_sample.