pub struct WindowTouchpadMagnifyEvent {
pub window_id: WindowId,
pub device_id: DeviceId,
pub scale: f64,
pub phase: TouchPhase,
}Expand description
A window received touchpad magnify input.
Fields§
§window_id: WindowIdThe ID of the window.
device_id: DeviceIdThe device that generated the input.
scale: f64The scaling to be applied.
Values between 0.0 and 1.0 indicate zooming out. Values above 1.0 indicate zooming in.
phase: TouchPhaseThe touch phase for the event.
Trait Implementations§
Source§impl Clone for WindowTouchpadMagnifyEvent
impl Clone for WindowTouchpadMagnifyEvent
Source§fn clone(&self) -> WindowTouchpadMagnifyEvent
fn clone(&self) -> WindowTouchpadMagnifyEvent
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 Debug for WindowTouchpadMagnifyEvent
impl Debug for WindowTouchpadMagnifyEvent
Source§impl From<WindowTouchpadMagnifyEvent> for WindowEvent
impl From<WindowTouchpadMagnifyEvent> for WindowEvent
Source§fn from(other: WindowTouchpadMagnifyEvent) -> Self
fn from(other: WindowTouchpadMagnifyEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowTouchpadMagnifyEvent
impl RefUnwindSafe for WindowTouchpadMagnifyEvent
impl Send for WindowTouchpadMagnifyEvent
impl Sync for WindowTouchpadMagnifyEvent
impl Unpin for WindowTouchpadMagnifyEvent
impl UnwindSafe for WindowTouchpadMagnifyEvent
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