pub enum ScrollDelta {
Lines {
x: f32,
y: f32,
},
Pixels {
x: f32,
y: f32,
},
}Expand description
Scroll delta from mouse wheel or trackpad.
Variants§
Trait Implementations§
Source§impl Clone for ScrollDelta
impl Clone for ScrollDelta
impl Copy for ScrollDelta
Source§impl Debug for ScrollDelta
impl Debug for ScrollDelta
Source§impl PartialEq for ScrollDelta
impl PartialEq for ScrollDelta
impl StructuralPartialEq for ScrollDelta
Auto Trait Implementations§
impl Freeze for ScrollDelta
impl RefUnwindSafe for ScrollDelta
impl Send for ScrollDelta
impl Sync for ScrollDelta
impl Unpin for ScrollDelta
impl UnsafeUnpin for ScrollDelta
impl UnwindSafe for ScrollDelta
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