Type Alias zng_unit::PxPoint

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

A point in device pixels.

Aliased Type§

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.