zng_layout::unitTrait 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.
Self
equivalent in Px
units.
Multiply the Dip
self by the scale.