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
sourceimpl Clone for WindowTouchpadPressureEvent
impl Clone for WindowTouchpadPressureEvent
sourcefn clone(&self) -> WindowTouchpadPressureEvent
fn clone(&self) -> WindowTouchpadPressureEvent
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for WindowTouchpadPressureEvent
impl Debug for WindowTouchpadPressureEvent
sourceimpl From<WindowTouchpadPressureEvent> for WindowEvent
impl From<WindowTouchpadPressureEvent> for WindowEvent
sourcefn from(other: WindowTouchpadPressureEvent) -> Self
fn from(other: WindowTouchpadPressureEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for WindowTouchpadPressureEvent
impl Send for WindowTouchpadPressureEvent
impl Sync for WindowTouchpadPressureEvent
impl Unpin for WindowTouchpadPressureEvent
impl UnwindSafe for WindowTouchpadPressureEvent
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more