Skip to main content

make_rect

Function make_rect 

Source
pub fn make_rect(origin: Point, bounds: Size) -> Rect
Expand description

Creates a rectangle from an origin and a size.

§Arguments

  • origin - The upper left-hand corner.
  • bounds - The width and height.

§Returns

The rectangle.