Enum components::ScrollSource [−][src]
#[non_exhaustive] pub enum ScrollSource { Unknown, Wheel, Finger, Continuous, // some variants omitted }
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)
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.
Source of scroll events is unknown.
The scroll event is originated by a mouse wheel.
The scroll event is originated by one or more fingers on the device (eg. touchpads).
The scroll event is originated by the motion of some device (eg. a scroll button is set).
Trait Implementations
impl Clone for ScrollSource
[src]
impl Clone for ScrollSource
[src]pub fn clone(&self) -> ScrollSource
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScrollSource
[src]
impl Copy for ScrollSource
[src]impl Display for ScrollSource
[src]
impl Display for ScrollSource
[src]impl Eq for ScrollSource
[src]
impl Eq for ScrollSource
[src]impl<'a> FromValue<'a> for ScrollSource
[src]
impl<'a> FromValue<'a> for ScrollSource
[src]pub unsafe fn from_value(value: &Value) -> ScrollSource
[src]
impl<'a> FromValueOptional<'a> for ScrollSource
[src]
impl<'a> FromValueOptional<'a> for ScrollSource
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<ScrollSource>
[src]
impl Hash for ScrollSource
[src]
impl Hash for ScrollSource
[src]impl Ord for ScrollSource
[src]
impl Ord for ScrollSource
[src]impl PartialEq<ScrollSource> for ScrollSource
[src]
impl PartialEq<ScrollSource> for ScrollSource
[src]pub fn eq(&self, other: &ScrollSource) -> bool
[src]
pub fn ne(&self, other: &ScrollSource) -> bool
[src]
impl PartialOrd<ScrollSource> for ScrollSource
[src]
impl PartialOrd<ScrollSource> for ScrollSource
[src]pub fn partial_cmp(&self, other: &ScrollSource) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl SetValue for ScrollSource
[src]
impl SetValue for ScrollSource
[src]pub unsafe fn set_value(value: &mut Value, this: &ScrollSource)
[src]
impl StaticType for ScrollSource
[src]
impl StaticType for ScrollSource
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for ScrollSource
[src]
impl StructuralEq for ScrollSource
[src]impl StructuralPartialEq for ScrollSource
[src]
impl StructuralPartialEq for ScrollSource
[src]Auto Trait Implementations
impl RefUnwindSafe for ScrollSource
impl RefUnwindSafe for ScrollSource
impl Send for ScrollSource
impl Send for ScrollSource
impl Sync for ScrollSource
impl Sync for ScrollSource
impl Unpin for ScrollSource
impl Unpin for ScrollSource
impl UnwindSafe for ScrollSource
impl UnwindSafe for ScrollSource
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
pub fn into_color(self) -> To
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]
impl<T> ToSendValue for T where
T: SetValue + Send + ToValue + ?Sized,
[src]pub fn to_send_value(&self) -> SendValue
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,