Type Alias zng_unit::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,
    /* private fields */
}

Fields§

§top: Px

Top offset.

§right: Px

Right offset.

§bottom: Px

Bottom offset.

§left: Px

Left offset.

Trait Implementations§

source§

impl PxToDip for PxSideOffsets

source§

type AsDip = SideOffsets2D<Dip, Dip>

Self equivalent in Dip units.
source§

fn to_dip(self, scale_factor: Factor) -> Self::AsDip

Divide the Px self by the scale.