Skip to main content

gap_insert

Function gap_insert 

Source
pub fn gap_insert<T: Into<u16>>(
    rect: LayoutRect,
    gap: T,
    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. Generic over gap type.