Type Alias zng_layout::unit::PxRect

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

A rectangle in device pixels.

Aliased Type§

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

§

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) -> Self::Var

New in exact length.

§

type Var = LocalVar<Rect>

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

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

Converts into BoxedVar<T>. Read more
source§

impl Mul<Factor2d> for PxRect

§

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