Function lyon_geom::rect[][src]

pub fn rect<S>(x: S, y: S, w: S, h: S) -> Rect<S>
Expand description

Shorthand for Rect::new(Point::new(x, y), Size::new(w, h)).