Struct show_image::event::WindowAxisMotionEvent
source · [−]pub struct WindowAxisMotionEvent {
pub window_id: WindowId,
pub device_id: DeviceId,
pub axis: AxisId,
pub value: f64,
}
Expand description
A window received axis motion input.
Fields
window_id: WindowId
The ID of the window.
device_id: DeviceId
The device that generated the input.
axis: AxisId
The axis that as moved.
value: f64
The value by which the axis moved.
Trait Implementations
sourceimpl Clone for WindowAxisMotionEvent
impl Clone for WindowAxisMotionEvent
sourcefn clone(&self) -> WindowAxisMotionEvent
fn clone(&self) -> WindowAxisMotionEvent
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 WindowAxisMotionEvent
impl Debug for WindowAxisMotionEvent
sourceimpl From<WindowAxisMotionEvent> for WindowEvent
impl From<WindowAxisMotionEvent> for WindowEvent
sourcefn from(other: WindowAxisMotionEvent) -> Self
fn from(other: WindowAxisMotionEvent) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for WindowAxisMotionEvent
impl Send for WindowAxisMotionEvent
impl Sync for WindowAxisMotionEvent
impl Unpin for WindowAxisMotionEvent
impl UnwindSafe for WindowAxisMotionEvent
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