pub enum SliderInteraction {
TapAndSlide,
TapOnly,
SlideOnly,
SlideThumb,
}Expand description
Possible ways for a user to interact with a Slider.
Variants§
TapAndSlide
Allows the user to interact with a Slider by tapping or sliding anywhere
on the track.
Essentially all possible interactions are allowed.
This is different from SliderInteraction::SlideOnly as when you try
to slide anywhere other than the thumb, the thumb will move to the first
point of contact.
TapOnly
Allows the user to interact with a Slider by only tapping anywhere on
the track.
Sliding interaction is ignored.
SlideOnly
Allows the user to interact with a Slider only by sliding anywhere on
the track.
Tapping interaction is ignored.
SlideThumb
Allows the user to interact with a Slider only by sliding the thumb.
Tapping and sliding interactions on the track are ignored.
Trait Implementations§
Source§impl Clone for SliderInteraction
impl Clone for SliderInteraction
impl Copy for SliderInteraction
Source§impl Debug for SliderInteraction
impl Debug for SliderInteraction
impl Eq for SliderInteraction
Source§impl Hash for SliderInteraction
impl Hash for SliderInteraction
Source§impl PartialEq for SliderInteraction
impl PartialEq for SliderInteraction
impl StructuralPartialEq for SliderInteraction
Auto Trait Implementations§
impl Forget for SliderInteraction
impl Freeze for SliderInteraction
impl Move for SliderInteraction
impl RefUnwindSafe for SliderInteraction
impl Send for SliderInteraction
impl Sync for SliderInteraction
impl Unpin for SliderInteraction
impl UnsafeUnpin for SliderInteraction
impl UnwindSafe for SliderInteraction
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.