Type Alias zng_unit::DipPoint

source ·
pub type DipPoint = Point2D<Dip, Dip>;
Expand description

A point in device independent pixels.

Aliased Type§

struct DipPoint {
    pub x: Dip,
    pub y: Dip,
}

Fields§

§x: Dip§y: Dip

Trait Implementations§

source§

impl DipToPx for DipPoint

source§

type AsPx = Point2D<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 DipPoint

source§

type Output = Point2D<Dip, Dip>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<Factor> for DipPoint

source§

fn div_assign(&mut self, rhs: Factor)

Performs the /= operation. Read more
source§

impl Mul<Factor> for DipPoint

source§

type Output = Point2D<Dip, Dip>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<Factor> for DipPoint

source§

fn mul_assign(&mut self, rhs: Factor)

Performs the *= operation. Read more