Type Alias zng_layout::unit::DipSideOffsets

source ·
pub type DipSideOffsets = SideOffsets2D<Dip, Dip>;
Expand description

Side-offsets in device independent pixels.

Aliased Type§

struct DipSideOffsets {
    pub top: Dip,
    pub right: Dip,
    pub bottom: Dip,
    pub left: Dip,
}

Fields§

§top: Dip

Top offset.

§right: Dip

Right offset.

§bottom: Dip

Bottom offset.

§left: Dip

Left offset.

Trait Implementations§

source§

impl Div<FactorSideOffsets> for DipSideOffsets

source§

type Output = SideOffsets2D<Dip, Dip>

The resulting type after applying the / operator.
source§

fn div(self, rhs: FactorSideOffsets) -> DipSideOffsets

Performs the / operation. Read more
source§

impl DivAssign<FactorSideOffsets> for DipSideOffsets

source§

fn div_assign(&mut self, rhs: FactorSideOffsets)

Performs the /= operation. Read more
source§

impl IntoVar<SideOffsets> for DipSideOffsets

source§

type Var = LocalVar<SideOffsets>

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<FactorSideOffsets> for DipSideOffsets

source§

type Output = SideOffsets2D<Dip, Dip>

The resulting type after applying the * operator.
source§

fn mul(self, rhs: FactorSideOffsets) -> DipSideOffsets

Performs the * operation. Read more
source§

impl MulAssign<FactorSideOffsets> for DipSideOffsets

source§

fn mul_assign(&mut self, rhs: FactorSideOffsets)

Performs the *= operation. Read more
source§

impl IntoValue<SideOffsets> for DipSideOffsets