DipBox

Type Alias DipBox 

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

A rectangle box in device independent pixels.

Aliased Type§

#[repr(C)]
pub 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.