PxVector

Type Alias PxVector 

Source
pub type PxVector = Vector2D<Px, Px>;
Expand description

A vector in device pixels.

Aliased Type§

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

Fields§

§x: Px

The x (traditionally, horizontal) coordinate.

§y: Px

The y (traditionally, vertical) coordinate.

Trait Implementations§

Source§

impl Div<Factor2d> for PxVector

Source§

type Output = Vector2D<Px, Px>

The resulting type after applying the / operator.
Source§

fn div(self, rhs: Factor2d) -> PxVector

Performs the / operation. Read more
Source§

impl DivAssign<Factor2d> for PxVector

Source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
Source§

impl From<PxGridSpacing> for PxVector

Source§

fn from(s: PxGridSpacing) -> Self

Converts to this type from the input type.
Source§

impl IntoVar<Vector> for PxVector

Source§

impl Mul<Factor2d> for PxVector

Source§

type Output = Vector2D<Px, Px>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Factor2d) -> PxVector

Performs the * operation. Read more
Source§

impl MulAssign<Factor2d> for PxVector

Source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
Source§

impl IntoValue<Vector> for PxVector