zng_unit

Type Alias DipRect

source
pub type DipRect = Rect<Dip, Dip>;
Expand description

A rectangle in device independent pixels.

Aliased Type§

struct DipRect {
    pub origin: Point2D<Dip, Dip>,
    pub size: Size2D<Dip, Dip>,
}

Fields§

§origin: Point2D<Dip, Dip>§size: Size2D<Dip, Dip>

Trait Implementations§

source§

impl DipToPx for DipRect

source§

type AsPx = Rect<Px, Px>

Self equivalent in Px units.
source§

fn to_px(self, scale_factor: Factor) -> Self::AsPx

Multiply the Dip self by the scale.
source§

impl Div<Factor> for DipRect

source§

type Output = Rect<Dip, Dip>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<Factor> for DipRect

source§

fn div_assign(&mut self, rhs: Factor)

Performs the /= operation. Read more
source§

impl Mul<Factor> for DipRect

source§

type Output = Rect<Dip, Dip>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<Factor> for DipRect

source§

fn mul_assign(&mut self, rhs: Factor)

Performs the *= operation. Read more