pub enum ShowValueIndicator {
OnlyForDiscrete,
OnlyForContinuous,
Always,
OnDrag,
AlwaysVisible,
Never,
}Expand description
Describes the conditions under which the value indicator on a Slider
will be shown. Used in Slider::show_value_indicator and
SliderThemeData::show_value_indicator.
See also:
Slider, a Material Design slider widget.SliderThemeData, which describes the actual configuration of a slider theme.
Variants§
OnlyForDiscrete
The value indicator will only be shown while dragging for discrete sliders (sliders
where Slider::divisions is non-null).
OnlyForContinuous
The value indicator will only be shown while dragging for continuous sliders (sliders
where Slider::divisions is null).
Always
👎Deprecated:
Use ShowValueIndicator::OnDrag. This feature was deprecated after v3.28.0-1.0.pre.
The value indicator is shown while dragging.
OnDrag
The value indicator is shown while dragging.
AlwaysVisible
The value indicator is always displayed as long as the slider has a
Slider::on_changed callback.
Never
The value indicator will never be shown.
Trait Implementations§
Source§impl Clone for ShowValueIndicator
impl Clone for ShowValueIndicator
impl Copy for ShowValueIndicator
Source§impl Debug for ShowValueIndicator
impl Debug for ShowValueIndicator
impl Eq for ShowValueIndicator
Source§impl Hash for ShowValueIndicator
impl Hash for ShowValueIndicator
Source§impl PartialEq for ShowValueIndicator
impl PartialEq for ShowValueIndicator
impl StructuralPartialEq for ShowValueIndicator
Auto Trait Implementations§
impl Forget for ShowValueIndicator
impl Freeze for ShowValueIndicator
impl Move for ShowValueIndicator
impl RefUnwindSafe for ShowValueIndicator
impl Send for ShowValueIndicator
impl Sync for ShowValueIndicator
impl Unpin for ShowValueIndicator
impl UnsafeUnpin for ShowValueIndicator
impl UnwindSafe for ShowValueIndicator
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.