Function primitives::rect [−][src]
pub const fn rect<T>(x: T, y: T, w: T, h: T) -> Rect<T>
Expand description
Shorthand for Rect::new(Point::new(x, y), Size::new(w, h))
.
pub const fn rect<T>(x: T, y: T, w: T, h: T) -> Rect<T>
Shorthand for Rect::new(Point::new(x, y), Size::new(w, h))
.