pub struct RoundRangeSliderThumbShape {
pub enabled_thumb_radius: f64,
pub disabled_thumb_radius: Option<f64>,
pub elevation: f64,
pub pressed_elevation: f64,
}Expand description
The default shape of a RangeSlider’s thumbs.
There is a shadow for the resting and pressed state.
See also:
RangeSlider, which includes thumbs defined by this shape.SliderTheme, which can be used to configure the thumb shapes of all range sliders in a widget subtree.
Fields§
§enabled_thumb_radius: f64The preferred radius of the round thumb shape when the slider is enabled.
If it is not provided, then the Material Design default of 10 is used.
disabled_thumb_radius: Option<f64>The preferred radius of the round thumb shape when the slider is disabled.
If no disabledRadius is provided, then it is equal to the
enabled_thumb_radius.
elevation: f64The resting elevation adds shadow to the unpressed thumb.
The default is 1.
pressed_elevation: f64The pressed elevation adds shadow to the pressed thumb.
The default is 6.
Implementations§
Source§impl RoundRangeSliderThumbShape
impl RoundRangeSliderThumbShape
Sourcepub const fn new() -> RoundRangeSliderThumbShape
pub const fn new() -> RoundRangeSliderThumbShape
Create a slider thumb that draws a circle.
Sourcepub const fn enabled_thumb_radius(
self,
enabled_thumb_radius: f64,
) -> RoundRangeSliderThumbShape
pub const fn enabled_thumb_radius( self, enabled_thumb_radius: f64, ) -> RoundRangeSliderThumbShape
Dart RoundRangeSliderThumbShape(enabledThumbRadius:).
Sourcepub const fn disabled_thumb_radius(
self,
disabled_thumb_radius: f64,
) -> RoundRangeSliderThumbShape
pub const fn disabled_thumb_radius( self, disabled_thumb_radius: f64, ) -> RoundRangeSliderThumbShape
Dart RoundRangeSliderThumbShape(disabledThumbRadius:).
Sourcepub const fn elevation(self, elevation: f64) -> RoundRangeSliderThumbShape
pub const fn elevation(self, elevation: f64) -> RoundRangeSliderThumbShape
Dart RoundRangeSliderThumbShape(elevation:).
Sourcepub const fn pressed_elevation(
self,
pressed_elevation: f64,
) -> RoundRangeSliderThumbShape
pub const fn pressed_elevation( self, pressed_elevation: f64, ) -> RoundRangeSliderThumbShape
Dart RoundRangeSliderThumbShape(pressedElevation:).
Trait Implementations§
Source§impl Clone for RoundRangeSliderThumbShape
impl Clone for RoundRangeSliderThumbShape
impl Copy for RoundRangeSliderThumbShape
Source§impl Debug for RoundRangeSliderThumbShape
impl Debug for RoundRangeSliderThumbShape
Source§impl Default for RoundRangeSliderThumbShape
impl Default for RoundRangeSliderThumbShape
Source§fn default() -> RoundRangeSliderThumbShape
fn default() -> RoundRangeSliderThumbShape
Source§impl RangeSliderThumbShape for RoundRangeSliderThumbShape
impl RangeSliderThumbShape for RoundRangeSliderThumbShape
Source§fn eq_shape(&self, other: &dyn RangeSliderThumbShape) -> bool
fn eq_shape(&self, other: &dyn RangeSliderThumbShape) -> bool
Value equality, as Dart’s canonicalized const instances are identical.