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,
    /* 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.