DipSideOffsets

Type Alias DipSideOffsets 

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

Side-offsets in device independent pixels.

Aliased Type§

pub 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

Source§

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.