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

Fields§

§top: Dip

Top offset.

§right: Dip

Right offset.

§bottom: Dip

Bottom offset.

§left: Dip

Left offset.

Trait Implementations§

source§

impl DipToPx for DipSideOffsets

§

type AsPx = SideOffsets2D<Px, Px>

Self equivalent in Px units.
source§

fn to_px(self, scale_factor: Factor) -> Self::AsPx

Multiply the Dip self by the scale.