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

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

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