pub struct WindowMetrics { /* private fields */ }Expand description
The current drawable metrics of a window.
Implementations§
Source§impl WindowMetrics
impl WindowMetrics
Sourcepub const fn extent(self) -> PhysicalExtent
pub const fn extent(self) -> PhysicalExtent
Returns the drawable extent in physical pixels.
Sourcepub const fn scale_factor(self) -> f64
pub const fn scale_factor(self) -> f64
Returns physical pixels per logical window coordinate.
Sourcepub const fn revision(self) -> WindowRevision
pub const fn revision(self) -> WindowRevision
Returns the revision of these window metrics.
Trait Implementations§
Source§impl Clone for WindowMetrics
impl Clone for WindowMetrics
Source§fn clone(&self) -> WindowMetrics
fn clone(&self) -> WindowMetrics
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 moreimpl Copy for WindowMetrics
Source§impl Debug for WindowMetrics
impl Debug for WindowMetrics
Source§impl PartialEq for WindowMetrics
impl PartialEq for WindowMetrics
impl StructuralPartialEq for WindowMetrics
Auto Trait Implementations§
impl Freeze for WindowMetrics
impl RefUnwindSafe for WindowMetrics
impl Send for WindowMetrics
impl Sync for WindowMetrics
impl Unpin for WindowMetrics
impl UnsafeUnpin for WindowMetrics
impl UnwindSafe for WindowMetrics
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