DipPoint

Type Alias DipPoint 

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

A point in device independent pixels.

Aliased Type§

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