azul_core::display_list

Function subtract_padding

Source
pub fn subtract_padding(
    size: &LayoutSize,
    padding: &ResolvedOffsets,
) -> LayoutSize
Expand description

Subtracts the padding from the size, returning the new size

Warning: The resulting rectangle may have negative width or height