Function rect
pub const fn rect<T, U>(x: T, y: T, w: T, h: T) -> Rect<T, U>
Available on crate feature
canvas
only.Expand description
Shorthand for Rect::new(Point2D::new(x, y), Size2D::new(w, h))
.
pub const fn rect<T, U>(x: T, y: T, w: T, h: T) -> Rect<T, U>
canvas
only.Shorthand for Rect::new(Point2D::new(x, y), Size2D::new(w, h))
.