LogicalSize

Type Alias LogicalSize 

Source
pub type LogicalSize = Size<f32>;

Aliased Type§

pub struct LogicalSize {
    pub width: f32,
    pub height: f32,
}

Fields§

§width: f32§height: f32

Implementations§

Source§

impl LogicalSize

Source

pub fn from_physical( physical_size: impl Into<PhysicalSize>, scale_factor: f32, ) -> Self

Source

pub fn to_physical(&self, scale_factor: f32) -> PhysicalSize