Function cosmic::iced_widget::renderer::graphics::core::layout::contained

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

Computes the resulting Node that fits the Limits given some width and height requirements and a closure that produces the content Node inside the given Limits.