zng_layout::unit

Type Alias 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<Factor2d> for PxPoint

source§

type Output = Point2D<Px, Px>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<Factor2d> for PxPoint

source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
source§

impl IntoVar<Point> for PxPoint

source§

type Var = LocalVar<Point>

Variable type that will wrap the T value. Read more
source§

fn into_var(self) -> Self::Var

Converts the source value into a var.
source§

fn into_boxed_var(self) -> Box<dyn VarBoxed<T>>
where Self: Sized,

Converts into BoxedVar<T>. Read more
source§

impl Mul<Factor2d> for PxPoint

source§

type Output = Point2D<Px, Px>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<Factor2d> for PxPoint

source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
source§

impl IntoValue<Point> for PxPoint