Type Alias zng_unit::DipBox

source ·
pub type DipBox = Box2D<Dip, Dip>;
Expand description

A rectangle box in device independent pixels.

Aliased Type§

struct DipBox {
    pub min: Point2D<Dip, Dip>,
    pub max: Point2D<Dip, Dip>,
}

Fields§

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

Trait Implementations§

source§

impl DipToPx for DipBox

source§

type AsPx = Box2D<Px, Px>

Self equivalent in Px units.
source§

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

Multiply the Dip self by the scale.