Type Definition graphics::types::Rectangle

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

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

Trait Implementations

Shrinks the current rectangle equally by all sides.

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

Expands the current rectangle equally by all sides.