Rectangle

Type Alias Rectangle 

Source
pub type Rectangle<T = Scalar> = [T; 4];
Expand description

Rectangle dimensions: [x, y, w, h]

Trait Implementations§

Source§

impl Rectangled for Rectangle

Source§

fn margin(self, m: Scalar) -> Self

Shrinks the current rectangle equally by all sides.
Source§

fn rel(self, x: Scalar, y: Scalar) -> Self

Moves to a relative rectangle using the current rectangle as tile.
Source§

fn expand(self, m: Scalar) -> Self

Expands the current rectangle equally by all sides.