Enum ux::ScrollDirection [−][src]
#[non_exhaustive] pub enum ScrollDirection { Up, Down, Left, Right, Smooth, // some variants omitted }
Direction of a pointer scroll event.
The ScrollDirection::Smooth
value implies that the ScrollEvent
has precise scrolling delta information.
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.
Scroll up
Scroll down
Scroll left
Scroll right
Precise scrolling delta (available in 1.10)
Trait Implementations
impl Clone for ScrollDirection
[src]
impl Clone for ScrollDirection
[src]pub fn clone(&self) -> ScrollDirection
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for ScrollDirection
[src]
impl Copy for ScrollDirection
[src]impl Debug for ScrollDirection
[src]
impl Debug for ScrollDirection
[src]impl Display for ScrollDirection
[src]
impl Display for ScrollDirection
[src]impl Eq for ScrollDirection
[src]
impl Eq for ScrollDirection
[src]impl<'a> FromValue<'a> for ScrollDirection
[src]
impl<'a> FromValue<'a> for ScrollDirection
[src]pub unsafe fn from_value(value: &Value) -> ScrollDirection
[src]
impl<'a> FromValueOptional<'a> for ScrollDirection
[src]
impl<'a> FromValueOptional<'a> for ScrollDirection
[src]pub unsafe fn from_value_optional(value: &Value) -> Option<ScrollDirection>
[src]
impl Hash for ScrollDirection
[src]
impl Hash for ScrollDirection
[src]impl Ord for ScrollDirection
[src]
impl Ord for ScrollDirection
[src]impl PartialEq<ScrollDirection> for ScrollDirection
[src]
impl PartialEq<ScrollDirection> for ScrollDirection
[src]pub fn eq(&self, other: &ScrollDirection) -> bool
[src]
pub fn ne(&self, other: &ScrollDirection) -> bool
[src]
impl PartialOrd<ScrollDirection> for ScrollDirection
[src]
impl PartialOrd<ScrollDirection> for ScrollDirection
[src]pub fn partial_cmp(&self, other: &ScrollDirection) -> 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 ScrollDirection
[src]
impl SetValue for ScrollDirection
[src]pub unsafe fn set_value(value: &mut Value, this: &ScrollDirection)
[src]
impl StaticType for ScrollDirection
[src]
impl StaticType for ScrollDirection
[src]pub fn static_type() -> Type
[src]
impl StructuralEq for ScrollDirection
[src]
impl StructuralEq for ScrollDirection
[src]impl StructuralPartialEq for ScrollDirection
[src]
impl StructuralPartialEq for ScrollDirection
[src]Auto Trait Implementations
impl RefUnwindSafe for ScrollDirection
impl RefUnwindSafe for ScrollDirection
impl Send for ScrollDirection
impl Send for ScrollDirection
impl Sync for ScrollDirection
impl Sync for ScrollDirection
impl Unpin for ScrollDirection
impl Unpin for ScrollDirection
impl UnwindSafe for ScrollDirection
impl UnwindSafe for ScrollDirection
Blanket Implementations
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
[src]pub fn into_color(self) -> To
[src]
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>,