Type Definition Rectangle
graphics::types
type Rectangle<T = Scalar> = [T; 4];
Rectangle dimensions: [x, y, w, h]
impl Rectangled for Rectangle
fn margin(self, m: Scalar) -> Self
Shrinks the current rectangle equally by all sides.
fn rel(self, x: Scalar, y: Scalar) -> Self
Moves to a relative rectangle using the current rectangle as tile.
fn expand(self, m: Scalar) -> Self
Expands the current rectangle equally by all sides.