PxSideOffsets

Type Alias PxSideOffsets 

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

Side-offsets in device pixels.

Aliased Type§

pub 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) -> Var<SideOffsets>

From exact lengths.

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