pub fn from_dp<T: Into<Size>>(size: T, scale: Scale) -> ScaledArea {
        let size_px = size.into().to_px(scale).expand();
        let size_dp = size_px.to_dp(scale);
        ScaledArea { size_dp, size_px }
    }
/// Create a new scaled area from display points.
///
/// The calculated size in pixels is rounded away from zero to integers.
/// That means that the scaled area size in display points isn't always the same
/// as the `size` given to this function. To find out the new size in points use [`size_dp`].
///
/// [`size_dp`]: #method.size_dp
Create a new scaled area from display points.
The calculated size in pixels is rounded away from zero to integers.
That means that the scaled area size in display points isn't always the same
as the `size` given to this function. To find out the new size in points use [`size_dp`].


Create a new scaled area from display points . The calculated size in pixels is rounded away from zero to integers . That means that the scaled area size in display points isn ' t always the same as the ` size ` given to this function . To find out the new size in points use [ ` size_dp ` ] .
pub fn from_dp<T: Into<Size>>(size: T, scale: Scale) -> ScaledArea {
        let size_px = size.into().to_px(scale).expand();
        let size_dp = size_px.to_dp(scale);
        ScaledArea { size_dp, size_px }
    }
pub fn from_dp < T : Into < Size > > ( size : T , scale : Scale ) -> ScaledArea { let size_px = size . into ( ) . to_px ( scale ) . expand ( ) ; let size_dp = size_px . to_dp ( scale ) ; ScaledArea { size_dp , size_px } }
Create a new scaled area from display points.
Create a new scaled area from display points .
size
T
scale
Scale
size
T
scale
Scale