zng_layout::unit

Type Alias PxSideOffsets

source
pub type PxSideOffsets = SideOffsets2D<Px, Px>;
Expand description

Side-offsets in device pixels.

Aliased Type§

struct PxSideOffsets {
    pub top: Px,
    pub right: Px,
    pub bottom: Px,
    pub left: Px,
}

Fields§

§top: Px

Top offset.

§right: Px

Right offset.

§bottom: Px

Bottom offset.

§left: Px

Left offset.

Trait Implementations§

source§

impl Div<FactorSideOffsets> for PxSideOffsets

source§

type Output = SideOffsets2D<Px, Px>

The resulting type after applying the / operator.
source§

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

Performs the / operation. Read more
source§

impl DivAssign<FactorSideOffsets> for PxSideOffsets

source§

fn div_assign(&mut self, rhs: FactorSideOffsets)

Performs the /= operation. Read more
source§

impl IntoVar<SideOffsets> for PxSideOffsets

source§

fn into_var(self) -> Self::Var

From exact lengths.

source§

type Var = LocalVar<SideOffsets>

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

source§

type Output = SideOffsets2D<Px, Px>

The resulting type after applying the * operator.
source§

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

Performs the * operation. Read more
source§

impl MulAssign<FactorSideOffsets> for PxSideOffsets

source§

fn mul_assign(&mut self, rhs: FactorSideOffsets)

Performs the *= operation. Read more
source§

impl IntoValue<SideOffsets> for PxSideOffsets