zng_layout::unit

Type Alias DipPoint

source
pub type DipPoint = Point2D<Dip, Dip>;
Expand description

A point in device independent pixels.

Aliased Type§

struct DipPoint {
    pub x: Dip,
    pub y: Dip,
}

Fields§

§x: Dip§y: Dip

Trait Implementations§

source§

impl Div<Factor2d> for DipPoint

source§

type Output = Point2D<Dip, Dip>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<Factor2d> for DipPoint

source§

fn div_assign(&mut self, rhs: Factor2d)

Performs the /= operation. Read more
source§

impl IntoVar<Point> for DipPoint

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 DipPoint

source§

type Output = Point2D<Dip, Dip>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<Factor2d> for DipPoint

source§

fn mul_assign(&mut self, rhs: Factor2d)

Performs the *= operation. Read more
source§

impl IntoValue<Point> for DipPoint