pub struct WindowInfo { /* private fields */ }Expand description
The info about the window
Implementations§
Source§impl WindowInfo
impl WindowInfo
pub fn from_logical_size(logical_size: Size, scale: f64) -> WindowInfo
pub fn from_physical_size(physical_size: PhySize, scale: f64) -> WindowInfo
Sourcepub fn logical_size(&self) -> Size
pub fn logical_size(&self) -> Size
The logical size of the window
Sourcepub fn physical_size(&self) -> PhySize
pub fn physical_size(&self) -> PhySize
The physical size of the window
Sourcepub fn scale_recip(&self) -> f64
pub fn scale_recip(&self) -> f64
The reciprocal of the scale factor of the window
Trait Implementations§
Source§impl Clone for WindowInfo
impl Clone for WindowInfo
Source§fn clone(&self) -> WindowInfo
fn clone(&self) -> WindowInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WindowInfo
impl Debug for WindowInfo
impl Copy for WindowInfo
Auto Trait Implementations§
impl Freeze for WindowInfo
impl RefUnwindSafe for WindowInfo
impl Send for WindowInfo
impl Sync for WindowInfo
impl Unpin for WindowInfo
impl UnsafeUnpin for WindowInfo
impl UnwindSafe for WindowInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more