Function rect

Source
pub const fn rect(x: f32, y: f32, width: f32, height: f32) -> Rect
Expand description

Shorthand for Rect::new(Point::new(x, y), Size::new(width, height)).