Skip to main content

gap_insert

Function gap_insert 

Source
pub fn gap_insert(
    rect: LayoutRect,
    gap: u16,
    index: usize,
    orientation: Orientation,
) -> LayoutRect
Expand description

Offset a rectangle by gap * index along the given orientation. Used when placing children in a split with inter-child gaps.