pub struct Slider { /* private fields */ }Expand description
Slider widget
Implementations§
Source§impl Slider
impl Slider
Sourcepub fn orientation(self, orientation: SliderOrientation) -> Self
pub fn orientation(self, orientation: SliderOrientation) -> Self
Set orientation
Sourcepub fn horizontal(self) -> Self
pub fn horizontal(self) -> Self
Make horizontal
Sourcepub fn style(self, style: SliderStyle) -> Self
pub fn style(self, style: SliderStyle) -> Self
Set style
Sourcepub fn show_value(self, show: bool) -> Self
pub fn show_value(self, show: bool) -> Self
Show/hide value
Sourcepub fn value_format(self, format: impl Into<String>) -> Self
pub fn value_format(self, format: impl Into<String>) -> Self
Set value format
Sourcepub fn track_color(self, color: Color) -> Self
pub fn track_color(self, color: Color) -> Self
Set track color
Sourcepub fn fill_color(self, color: Color) -> Self
pub fn fill_color(self, color: Color) -> Self
Set fill color
Sourcepub fn knob_color(self, color: Color) -> Self
pub fn knob_color(self, color: Color) -> Self
Set knob color
Sourcepub fn handle_key(&mut self, key: &Key) -> bool
pub fn handle_key(&mut self, key: &Key) -> bool
Handle key input
Trait Implementations§
Source§impl StyledView for Slider
impl StyledView for Slider
Source§fn remove_class(&mut self, class: &str)
fn remove_class(&mut self, class: &str)
Remove a CSS class
Source§fn toggle_class(&mut self, class: &str)
fn toggle_class(&mut self, class: &str)
Toggle a CSS class
Auto Trait Implementations§
impl Freeze for Slider
impl RefUnwindSafe for Slider
impl Send for Slider
impl Sync for Slider
impl Unpin for Slider
impl UnwindSafe for Slider
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