Struct show_image::event::WindowTouchpadPressureEvent
source · pub struct WindowTouchpadPressureEvent {
pub window_id: WindowId,
pub device_id: DeviceId,
pub pressure: f32,
pub stage: i64,
}
Expand description
A window received touchpad pressure input.
Fields§
§window_id: WindowId
The ID of the window.
device_id: DeviceId
The device that generated the input.
pressure: f32
The pressure on the touch pad, in the range 0 to 1.
stage: i64
The click level of the touch pad.
Trait Implementations§
source§impl Clone for WindowTouchpadPressureEvent
impl Clone for WindowTouchpadPressureEvent
source§fn clone(&self) -> WindowTouchpadPressureEvent
fn clone(&self) -> WindowTouchpadPressureEvent
Returns a copy 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 WindowTouchpadPressureEvent
impl Debug for WindowTouchpadPressureEvent
source§impl From<WindowTouchpadPressureEvent> for WindowEvent
impl From<WindowTouchpadPressureEvent> for WindowEvent
source§fn from(other: WindowTouchpadPressureEvent) -> Self
fn from(other: WindowTouchpadPressureEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for WindowTouchpadPressureEvent
impl RefUnwindSafe for WindowTouchpadPressureEvent
impl Send for WindowTouchpadPressureEvent
impl Sync for WindowTouchpadPressureEvent
impl Unpin for WindowTouchpadPressureEvent
impl UnwindSafe for WindowTouchpadPressureEvent
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