PxRect

Type Alias PxRect 

Source
pub type PxRect = Rect<Px, Px>;
Expand description

A rectangle in device pixels.

Aliased Type§

#[repr(C)]
pub struct PxRect { pub origin: Point2D<Px, Px>, pub size: Size2D<Px, Px>, }

Fields§

§origin: Point2D<Px, Px>§size: Size2D<Px, Px>

Trait Implementations§

Source§

impl Div<Factor2d> for PxRect

Source§

type Output = Rect<Px, Px>

The resulting type after applying the / operator.
Source§

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

Performs the / operation. Read more
Source§

impl DivAssign<Factor2d> for PxRect

Source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
Source§

impl IntoVar<Rect> for PxRect

Source§

fn into_var(self) -> Var<Rect>

New in exact length.

Source§

impl Mul<Factor2d> for PxRect

Source§

type Output = Rect<Px, Px>

The resulting type after applying the * operator.
Source§

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

Performs the * operation. Read more
Source§

impl MulAssign<Factor2d> for PxRect

Source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
Source§

impl IntoValue<Rect> for PxRect