[][src]Struct azul_core::window::WindowSize

pub struct WindowSize {
    pub dimensions: LogicalSize,
    pub hidpi_factor: f32,
    pub winit_hidpi_factor: f32,
    pub min_dimensions: Option<LogicalSize>,
    pub max_dimensions: Option<LogicalSize>,
}

Fields

dimensions: LogicalSize

Width and height of the window, in logical units (may not correspond to the physical on-screen size)

hidpi_factor: f32

DPI factor of the window

winit_hidpi_factor: f32

(Internal only, unused): winit HiDPI factor

min_dimensions: Option<LogicalSize>

Minimum dimensions of the window

max_dimensions: Option<LogicalSize>

Maximum dimensions of the window

Implementations

impl WindowSize[src]

pub fn get_logical_size(&self) -> LogicalSize[src]

Get the actual logical size

pub fn get_physical_size(&self) -> PhysicalSize<u32>[src]

pub fn get_reverse_logical_size(&self) -> LogicalSize[src]

Get a size that is usually smaller than the logical one, so that the winit DPI factor is compensated for.

Trait Implementations

impl Clone for WindowSize[src]

impl Copy for WindowSize[src]

impl Debug for WindowSize[src]

impl Default for WindowSize[src]

impl PartialEq<WindowSize> for WindowSize[src]

impl PartialOrd<WindowSize> for WindowSize[src]

impl StructuralPartialEq for WindowSize[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.