pub type PxRect = Rect<Px, Px>;
Expand description
A rectangle in device pixels.
Aliased Type§
struct PxRect {
pub origin: Point2D<Px, Px>,
pub size: Size2D<Px, Px>,
}
Fields§
§origin: Point2D<Px, Px>
§size: Size2D<Px, Px>
Trait Implementations§
source§impl DivAssign<Factor2d> for PxRect
impl DivAssign<Factor2d> for PxRect
source§fn div_assign(&mut self, rhs: Factor2d)
fn div_assign(&mut self, rhs: Factor2d)
Performs the
/=
operation. Read moresource§impl MulAssign<Factor2d> for PxRect
impl MulAssign<Factor2d> for PxRect
source§fn mul_assign(&mut self, rhs: Factor2d)
fn mul_assign(&mut self, rhs: Factor2d)
Performs the
*=
operation. Read more