pub struct Slider { /* private fields */ }Implementations§
Source§impl Slider
impl Slider
Sourcepub fn active(self, value: i32) -> Self
pub fn active(self, value: i32) -> Self
Determines which slider step (by index starting from 0) is considered active.
Sourcepub fn active_background_color(self, value: impl Color) -> Self
pub fn active_background_color(self, value: impl Color) -> Self
Sets the background color of the slider grip while dragging.
Sourcepub fn background_color(self, value: impl Color) -> Self
pub fn background_color(self, value: impl Color) -> Self
Sets the background color of the slider.
Sourcepub fn border_color(self, value: impl Color) -> Self
pub fn border_color(self, value: impl Color) -> Self
Sets the color of the border enclosing the slider.
Sourcepub fn border_width(self, value: usize) -> Self
pub fn border_width(self, value: usize) -> Self
Sets the width (in px) of the border enclosing the slider.
Sourcepub fn current_value(self, value: SliderCurrentValue) -> Self
pub fn current_value(self, value: SliderCurrentValue) -> Self
Sets the current value display configuration.
Sourcepub fn minor_tick_length(self, value: usize) -> Self
pub fn minor_tick_length(self, value: usize) -> Self
Sets the length in pixels of minor tick marks.
Sourcepub fn name(self, value: impl AsRef<str>) -> Self
pub fn name(self, value: impl AsRef<str>) -> Self
When used in a template, named items are created in the output figure in addition to any items the figure already has in this array.
Sourcepub fn steps(self, value: Vec<SliderStep>) -> Self
pub fn steps(self, value: Vec<SliderStep>) -> Self
Sets the slider steps.
Sourcepub fn template_item_name(self, value: impl AsRef<str>) -> Self
pub fn template_item_name(self, value: impl AsRef<str>) -> Self
Used to refer to a named item in this array in the template.
Sourcepub fn tick_color(self, value: impl Color) -> Self
pub fn tick_color(self, value: impl Color) -> Self
Sets the color of the border enclosing the slider.
Sourcepub fn tick_length(self, value: usize) -> Self
pub fn tick_length(self, value: usize) -> Self
Sets the length in pixels of step tick marks.
Sourcepub fn tick_width(self, value: usize) -> Self
pub fn tick_width(self, value: usize) -> Self
Sets the tick width (in px).
Sourcepub fn transition(self, value: SliderTransition) -> Self
pub fn transition(self, value: SliderTransition) -> Self
Sets the transition configuration.
Sourcepub fn x(self, value: f64) -> Self
pub fn x(self, value: f64) -> Self
Sets the x position (in normalized coordinates) of the slider.
Trait Implementations§
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)