Trait zng_unit::PxToDip

source ·
pub trait PxToDip {
    type AsDip;

    // Required method
    fn to_dip(self, scale_factor: Factor) -> Self::AsDip;
}
Expand description

Conversion from Px to Dip units.

Required Associated Types§

source

type AsDip

Self equivalent in Dip units.

Required Methods§

source

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

Divide the Px self by the scale.

Implementors§