Struct components::material::Slider
source · [−]pub struct Slider {Show 15 fields
pub key: Key,
pub value: f32,
pub on_changed: Option<ValueChanged<f32>>,
pub on_change_start: Option<ValueChanged<f32>>,
pub on_change_end: Option<ValueChanged<f32>>,
pub min: f32,
pub max: f32,
pub divisions: i32,
pub label: String,
pub active_color: Color,
pub inactive_color: Color,
pub thumb_color: Color,
pub mouse_cursor: MouseCursor,
pub focus_node: FocusNode,
pub autofocus: bool,
}Fields
key: Keyvalue: f32on_changed: Option<ValueChanged<f32>>on_change_start: Option<ValueChanged<f32>>on_change_end: Option<ValueChanged<f32>>min: f32max: f32divisions: i32label: Stringactive_color: Colorinactive_color: Colorthumb_color: Colormouse_cursor: MouseCursorfocus_node: FocusNodeautofocus: boolTrait Implementations
sourceimpl WidgetProperties for Slider
impl WidgetProperties for Slider
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl !RefUnwindSafe for Slider
impl !Send for Slider
impl !Sync for Slider
impl Unpin for Slider
impl !UnwindSafe for Slider
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value as a parameter of self.