Struct glutin::dpi::PhysicalSize [−][src]
pub struct PhysicalSize<P> {
pub width: P,
pub height: P,
}
Expand description
A size represented in physical pixels.
Fields
width: P
height: P
Implementations
pub fn from_logical<T, X>(logical: T, scale_factor: f64) -> PhysicalSize<P> where
T: Into<LogicalSize<X>>,
X: Pixel,
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl<P> RefUnwindSafe for PhysicalSize<P> where
P: RefUnwindSafe,
impl<P> Send for PhysicalSize<P> where
P: Send,
impl<P> Sync for PhysicalSize<P> where
P: Sync,
impl<P> Unpin for PhysicalSize<P> where
P: Unpin,
impl<P> UnwindSafe for PhysicalSize<P> where
P: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more