Type Alias zng_unit::PxBox

source ·
pub type PxBox = Box2D<Px, Px>;
Expand description

A rectangle box in device pixels.

Aliased Type§

struct PxBox {
    pub min: Point2D<Px, Px>,
    pub max: Point2D<Px, Px>,
}

Fields§

§min: Point2D<Px, Px>§max: Point2D<Px, Px>

Trait Implementations§

source§

impl PxToDip for PxBox

§

type AsDip = Box2D<Dip, Dip>

Self equivalent in Dip units.
source§

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

Divide the Px self by the scale.