pub struct SliderConfig {Show 15 fields
pub modifier: Modifier,
pub enabled: bool,
pub active_track_color: Color,
pub inactive_track_color: Color,
pub thumb_color: Color,
pub active_tick_color: Color,
pub inactive_tick_color: Color,
pub disabled_thumb_color: Color,
pub disabled_active_track_color: Color,
pub disabled_inactive_track_color: Color,
pub disabled_active_tick_color: Color,
pub disabled_inactive_tick_color: Color,
pub state_colors: StateColors,
pub on_value_change_finished: Option<Rc<dyn Fn()>>,
pub interaction_source: Option<MutableInteractionSource>,
}Expand description
Configuration for Slider and RangeSlider.
Fields§
§modifier: Modifier§enabled: boolWhen false, renders disabled colors and does not respond to input.
active_track_color: Color§inactive_track_color: Color§thumb_color: Color§active_tick_color: Color§inactive_tick_color: Color§disabled_thumb_color: Color§disabled_active_track_color: Color§disabled_inactive_track_color: Color§disabled_active_tick_color: Color§disabled_inactive_tick_color: Color§state_colors: StateColors§on_value_change_finished: Option<Rc<dyn Fn()>>§interaction_source: Option<MutableInteractionSource>Trait Implementations§
Source§impl Clone for SliderConfig
impl Clone for SliderConfig
Source§fn clone(&self) -> SliderConfig
fn clone(&self) -> SliderConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SliderConfig
impl Debug for SliderConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SliderConfig
impl !Send for SliderConfig
impl !Sync for SliderConfig
impl !UnwindSafe for SliderConfig
impl Freeze for SliderConfig
impl Unpin for SliderConfig
impl UnsafeUnpin for SliderConfig
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