[−][src]Struct winit::dpi::LogicalSize
A size represented in logical pixels.
Fields
width: P
height: P
Implementations
impl<P> LogicalSize<P>
[src]
impl<P: Pixel> LogicalSize<P>
[src]
pub fn from_physical<T: Into<PhysicalSize<X>>, X: Pixel>(
physical: T,
scale_factor: f64
) -> Self
[src]
physical: T,
scale_factor: f64
) -> Self
pub fn to_physical<X: Pixel>(&self, scale_factor: f64) -> PhysicalSize<X>
[src]
pub fn cast<X: Pixel>(&self) -> LogicalSize<X>
[src]
Trait Implementations
impl<P: Clone> Clone for LogicalSize<P>
[src]
fn clone(&self) -> LogicalSize<P>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<P: Copy> Copy for LogicalSize<P>
[src]
impl<P: Debug> Debug for LogicalSize<P>
[src]
impl<P: Pixel, X: Pixel> From<[X; 2]> for LogicalSize<P>
[src]
fn from([x, y]: [X; 2]) -> LogicalSize<P>
[src]
impl<P: Pixel, X: Pixel> From<(X, X)> for LogicalSize<P>
[src]
fn from((x, y): (X, X)) -> LogicalSize<P>
[src]
impl<P: Pixel> From<LogicalSize<P>> for Size
[src]
fn from(size: LogicalSize<P>) -> Size
[src]
impl<P: Pixel, X: Pixel> Into<[X; 2]> for LogicalSize<P>
[src]
impl<P: Pixel, X: Pixel> Into<(X, X)> for LogicalSize<P>
[src]
fn into(self: LogicalSize<P>) -> (X, X)
[src]
impl<P: PartialEq> PartialEq<LogicalSize<P>> for LogicalSize<P>
[src]
fn eq(&self, other: &LogicalSize<P>) -> bool
[src]
fn ne(&self, other: &LogicalSize<P>) -> bool
[src]
impl<P> StructuralPartialEq for LogicalSize<P>
[src]
Auto Trait Implementations
impl<P> RefUnwindSafe for LogicalSize<P> where
P: RefUnwindSafe,
P: RefUnwindSafe,
impl<P> Send for LogicalSize<P> where
P: Send,
P: Send,
impl<P> Sync for LogicalSize<P> where
P: Sync,
P: Sync,
impl<P> Unpin for LogicalSize<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for LogicalSize<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,