[−][src]Struct azul_core::window::WindowSize
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]
fn clone(&self) -> WindowSize
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for WindowSize
[src]
impl Debug for WindowSize
[src]
impl Default for WindowSize
[src]
impl PartialEq<WindowSize> for WindowSize
[src]
fn eq(&self, other: &WindowSize) -> bool
[src]
fn ne(&self, other: &WindowSize) -> bool
[src]
impl PartialOrd<WindowSize> for WindowSize
[src]
fn partial_cmp(&self, other: &WindowSize) -> Option<Ordering>
[src]
fn lt(&self, other: &WindowSize) -> bool
[src]
fn le(&self, other: &WindowSize) -> bool
[src]
fn gt(&self, other: &WindowSize) -> bool
[src]
fn ge(&self, other: &WindowSize) -> bool
[src]
impl StructuralPartialEq for WindowSize
[src]
Auto Trait Implementations
impl RefUnwindSafe for WindowSize
impl Send for WindowSize
impl Sync for WindowSize
impl Unpin for WindowSize
impl UnwindSafe for WindowSize
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>,