cosmic::iced_winit::graphics::core::layout

Function positioned

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

Computes a padded Node with a positioning step.