PxPoint

Type Alias PxPoint 

Source
pub type PxPoint = Point2D<Px, Px>;
Expand description

A point in device pixels.

Aliased Type§

#[repr(C)]
pub struct PxPoint { pub x: Px, pub y: Px, }

Fields§

§x: Px§y: Px

Trait Implementations§

Source§

impl Div<Factor> for PxPoint

Source§

type Output = Point2D<Px, Px>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign<Factor> for PxPoint

Source§

fn div_assign(&mut self, rhs: Factor)

Performs the /= operation. Read more
Source§

impl Mul<Factor> for PxPoint

Source§

type Output = Point2D<Px, Px>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign<Factor> for PxPoint

Source§

fn mul_assign(&mut self, rhs: Factor)

Performs the *= operation. Read more
Source§

impl PxToDip for PxPoint

Source§

type AsDip = Point2D<Dip, Dip>

Self equivalent in Dip units.
Source§

fn to_dip(self, scale_factor: Factor) -> Self::AsDip

Divide the Px self by the scale.