#[non_exhaustive]pub enum ScrollSource {
Unknown,
Wheel,
Finger,
Continuous,
}
Expand description
The scroll source determines the source of the scroll event. Keep in mind
that the source device InputDeviceType
is not enough to infer
the scroll source.
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.
Unknown
Source of scroll events is unknown.
Wheel
The scroll event is originated by a mouse wheel.
Finger
The scroll event is originated by one or more fingers on the device (eg. touchpads).
Continuous
The scroll event is originated by the motion of some device (eg. a scroll button is set).
Trait Implementations§
Source§impl Clone for ScrollSource
impl Clone for ScrollSource
Source§fn clone(&self) -> ScrollSource
fn clone(&self) -> ScrollSource
Returns a duplicate 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 ScrollSource
impl Debug for ScrollSource
Source§impl Display for ScrollSource
impl Display for ScrollSource
Source§impl<'a> FromValue<'a> for ScrollSource
impl<'a> FromValue<'a> for ScrollSource
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for ScrollSource
impl<'a> FromValueOptional<'a> for ScrollSource
Source§impl Hash for ScrollSource
impl Hash for ScrollSource
Source§impl Ord for ScrollSource
impl Ord for ScrollSource
Source§fn cmp(&self, other: &ScrollSource) -> Ordering
fn cmp(&self, other: &ScrollSource) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ScrollSource
impl PartialEq for ScrollSource
Source§impl PartialOrd for ScrollSource
impl PartialOrd for ScrollSource
Source§impl SetValue for ScrollSource
impl SetValue for ScrollSource
Source§impl StaticType for ScrollSource
impl StaticType for ScrollSource
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for ScrollSource
impl Eq for ScrollSource
impl StructuralPartialEq for ScrollSource
Auto Trait Implementations§
impl Freeze for ScrollSource
impl RefUnwindSafe for ScrollSource
impl Send for ScrollSource
impl Sync for ScrollSource
impl Unpin for ScrollSource
impl UnwindSafe for ScrollSource
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.