PxBox

Type Alias PxBox 

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

A rectangle box in device pixels.

Aliased Type§

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

Source§

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.