zng_layout::unit

Type Alias DipRect

source
pub type DipRect = Rect<Dip, Dip>;
Expand description

A rectangle in device independent pixels.

Aliased Type§

struct DipRect {
    pub origin: Point2D<Dip, Dip>,
    pub size: Size2D<Dip, Dip>,
}

Fields§

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

Trait Implementations§

source§

impl Div<Factor2d> for DipRect

source§

type Output = Rect<Dip, Dip>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<Factor2d> for DipRect

source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
source§

impl IntoVar<Rect> for DipRect

source§

fn into_var(self) -> Self::Var

New in exact length.

source§

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 DipRect

source§

type Output = Rect<Dip, Dip>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<Factor2d> for DipRect

source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
source§

impl IntoValue<Rect> for DipRect