pub fn from_px<T: Into<Size>>(size: T, scale: Scale) -> ScaledArea {
        let size_px = size.into();
        let size_dp = size_px.to_dp(scale);
        ScaledArea { size_dp, size_px }
    }
/// Create a new scaled area from pixels.
Create a new scaled area from pixels.
Create a new scaled area from pixels .
pub fn from_px<T: Into<Size>>(size: T, scale: Scale) -> ScaledArea {
        let size_px = size.into();
        let size_dp = size_px.to_dp(scale);
        ScaledArea { size_dp, size_px }
    }
pub fn from_px < T : Into < Size > > ( size : T , scale : Scale ) -> ScaledArea { let size_px = size . into ( ) ; let size_dp = size_px . to_dp ( scale ) ; ScaledArea { size_dp , size_px } }
Create a new scaled area from pixels.
Create a new scaled area from pixels .
size
T
scale
Scale
size
T
scale
Scale