pub struct WindowScaleFactorChangedEvent {
pub window_id: WindowId,
pub scale_factor: f64,
}Expand description
The scale factor between logical and physical pixels for a window changed.
Fields§
§window_id: WindowIdThe ID of the window.
scale_factor: f64The new scale factor as physical pixels per logical pixel.
Trait Implementations§
Source§impl Clone for WindowScaleFactorChangedEvent
impl Clone for WindowScaleFactorChangedEvent
Source§fn clone(&self) -> WindowScaleFactorChangedEvent
fn clone(&self) -> WindowScaleFactorChangedEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<WindowScaleFactorChangedEvent> for WindowEvent
impl From<WindowScaleFactorChangedEvent> for WindowEvent
Source§fn from(other: WindowScaleFactorChangedEvent) -> Self
fn from(other: WindowScaleFactorChangedEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowScaleFactorChangedEvent
impl RefUnwindSafe for WindowScaleFactorChangedEvent
impl Send for WindowScaleFactorChangedEvent
impl Sync for WindowScaleFactorChangedEvent
impl Unpin for WindowScaleFactorChangedEvent
impl UnwindSafe for WindowScaleFactorChangedEvent
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