#[non_exhaustive]pub enum ScrollMethod {
NoScroll,
TwoFinger,
Edge,
OnButtonDown,
}
Expand description
The scroll method of a device selects when to generate scroll axis events instead of pointer motion events.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoScroll
Never send scroll events instead of pointer motion events.
This has no effect on events generated by scroll wheels.
TwoFinger
Send scroll events when two fingers are logically down on the device.
Edge
Send scroll events when a finger moves along the bottom or right edge of a device.
OnButtonDown
Send scroll events when a button is down and the device moves along a scroll-capable axis.
Trait Implementations§
Source§impl Clone for ScrollMethod
impl Clone for ScrollMethod
Source§fn clone(&self) -> ScrollMethod
fn clone(&self) -> ScrollMethod
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 ScrollMethod
impl Debug for ScrollMethod
Source§impl Hash for ScrollMethod
impl Hash for ScrollMethod
Source§impl PartialEq for ScrollMethod
impl PartialEq for ScrollMethod
impl Copy for ScrollMethod
impl Eq for ScrollMethod
impl StructuralPartialEq for ScrollMethod
Auto Trait Implementations§
impl Freeze for ScrollMethod
impl RefUnwindSafe for ScrollMethod
impl Send for ScrollMethod
impl Sync for ScrollMethod
impl Unpin for ScrollMethod
impl UnwindSafe for ScrollMethod
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