PxSize

Type Alias PxSize 

Source
pub type PxSize = Size2D<Px, Px>;
Expand description

A size in device pixels.

Aliased Type§

#[repr(C)]
pub struct PxSize { pub width: Px, pub height: Px, }

Fields§

§width: Px

The extent of the element in the U units along the x axis (usually horizontal).

§height: Px

The extent of the element in the U units along the y axis (usually vertical).

Trait Implementations§

Source§

impl Div<Factor2d> for PxSize

Source§

type Output = Size2D<Px, Px>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign<Factor2d> for PxSize

Source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
Source§

impl IntoVar<PxConstraints2d> for PxSize

Source§

fn into_var(self) -> Var<PxConstraints2d>

New exact.

Source§

impl IntoVar<Size> for PxSize

Source§

impl Mul<Factor2d> for PxSize

Source§

type Output = Size2D<Px, Px>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign<Factor2d> for PxSize

Source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
Source§

impl IntoValue<PxConstraints2d> for PxSize

Source§

impl IntoValue<Size> for PxSize