Enum input::ScrollMethod
source · 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
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
sourceimpl Clone for ScrollMethod
impl Clone for ScrollMethod
sourcefn clone(&self) -> ScrollMethod
fn clone(&self) -> ScrollMethod
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 moresourceimpl Debug for ScrollMethod
impl Debug for ScrollMethod
sourceimpl Hash for ScrollMethod
impl Hash for ScrollMethod
sourceimpl PartialEq<ScrollMethod> for ScrollMethod
impl PartialEq<ScrollMethod> for ScrollMethod
sourcefn eq(&self, other: &ScrollMethod) -> bool
fn eq(&self, other: &ScrollMethod) -> bool
impl Copy for ScrollMethod
impl Eq for ScrollMethod
impl StructuralEq for ScrollMethod
impl StructuralPartialEq for ScrollMethod
Auto Trait Implementations
impl RefUnwindSafe for ScrollMethod
impl Send for ScrollMethod
impl Sync for ScrollMethod
impl Unpin for ScrollMethod
impl UnwindSafe for ScrollMethod
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