PxRect

Type Alias PxRect 

Source
pub type PxRect = Rect<Px, Px>;
Expand description

A rectangle in device pixels.

Aliased Type§

#[repr(C)]
pub 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 Div<Factor> for PxRect

Source§

type Output = Rect<Px, Px>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Factor) -> PxRect

Performs the / operation. Read more
Source§

impl DivAssign<Factor> for PxRect

Source§

fn div_assign(&mut self, rhs: Factor)

Performs the /= operation. Read more
Source§

impl Mul<Factor> for PxRect

Source§

type Output = Rect<Px, Px>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Factor) -> PxRect

Performs the * operation. Read more
Source§

impl MulAssign<Factor> for PxRect

Source§

fn mul_assign(&mut self, rhs: Factor)

Performs the *= operation. Read more
Source§

impl PxToDip for PxRect

Source§

type AsDip = Rect<Dip, Dip>

Self equivalent in Dip units.
Source§

fn to_dip(self, scale_factor: Factor) -> Self::AsDip

Divide the Px self by the scale.