pub enum RawWheelDelta {
Ticks(i64),
Millimeters(f32),
}
Expand description
RawWheelDelta
is the wheel delta from driver or gesture arena.
Variants§
Ticks(i64)
For tick based mouse wheel, driver will report how many ticks rotated in i64.
Millimeters(f32)
For Touchpad, gesture arena will compute how many swipe distance in mm in f32.
Trait Implementations§
Source§impl Clone for RawWheelDelta
impl Clone for RawWheelDelta
Source§fn clone(&self) -> RawWheelDelta
fn clone(&self) -> RawWheelDelta
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 RawWheelDelta
impl Debug for RawWheelDelta
Source§impl PartialEq for RawWheelDelta
impl PartialEq for RawWheelDelta
impl StructuralPartialEq for RawWheelDelta
Auto Trait Implementations§
impl Freeze for RawWheelDelta
impl RefUnwindSafe for RawWheelDelta
impl Send for RawWheelDelta
impl Sync for RawWheelDelta
impl Unpin for RawWheelDelta
impl UnwindSafe for RawWheelDelta
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)