cosmic::iced_core::layout

Function sized

source
pub fn sized(
    limits: &Limits,
    width: impl Into<Length>,
    height: impl Into<Length>,
    f: impl FnOnce(&Limits) -> Size,
) -> Node
Expand description

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.