pub struct NativeWheelEvent { /* private fields */ }Expand description
Data associated with a wheel event.
Captures scroll deltas and the delta mode.
Implementations§
Source§impl NativeWheelEvent
Implementation of NativeWheelEvent construction.
impl NativeWheelEvent
Implementation of NativeWheelEvent construction.
Source§impl NativeWheelEvent
impl NativeWheelEvent
pub fn get_delta_x(&self) -> &f64
pub fn get_mut_delta_x(&mut self) -> &mut f64
pub fn set_delta_x(&mut self, val: f64) -> &mut Self
pub fn get_delta_y(&self) -> &f64
pub fn get_mut_delta_y(&mut self) -> &mut f64
pub fn set_delta_y(&mut self, val: f64) -> &mut Self
pub fn get_delta_mode(&self) -> &u32
pub fn get_mut_delta_mode(&mut self) -> &mut u32
pub fn set_delta_mode(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for NativeWheelEvent
impl Clone for NativeWheelEvent
Source§fn clone(&self) -> NativeWheelEvent
fn clone(&self) -> NativeWheelEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NativeWheelEvent
impl Debug for NativeWheelEvent
Source§impl Default for NativeWheelEvent
impl Default for NativeWheelEvent
Source§fn default() -> NativeWheelEvent
fn default() -> NativeWheelEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for NativeWheelEvent
impl PartialEq for NativeWheelEvent
Source§fn eq(&self, other: &NativeWheelEvent) -> bool
fn eq(&self, other: &NativeWheelEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NativeWheelEvent
Auto Trait Implementations§
impl Freeze for NativeWheelEvent
impl RefUnwindSafe for NativeWheelEvent
impl Send for NativeWheelEvent
impl Sync for NativeWheelEvent
impl Unpin for NativeWheelEvent
impl UnsafeUnpin for NativeWheelEvent
impl UnwindSafe for NativeWheelEvent
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