Function graphics::math::margin_rectangle [−] [src]

pub fn margin_rectangle(rect: Rectangle, m: Scalar) -> Rectangle

Shrinks a rectangle by a factor on all sides.