Type Alias zng_unit::PxRect

source ·
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 Div<Factor> for PxRect

§

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

§

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

§

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.