iced::advanced::layout

Function 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
Available on crate feature advanced only.
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.