Trait zng_layout::unit::DipToPx

source ·
pub trait DipToPx {
    type AsPx;

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

Conversion from Dip to Px units.

Required Associated Types§

source

type AsPx

Self equivalent in Px units.

Required Methods§

source

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

Multiply the Dip self by the scale.

Implementors§