pub struct RoundRangeSliderTickMarkShape {
pub tick_mark_radius: Option<f64>,
}Expand description
The default shape of each RangeSlider tick mark.
Tick marks are only displayed if the slider is discrete, which can be done
by setting the RangeSlider::divisions to an integer value.
It paints a solid circle, centered on the track.
The color is determined by the Slider’s enabled state and track’s active
states. These colors are defined in:
SliderThemeData::active_track_color,
SliderThemeData::inactive_track_color,
SliderThemeData::disabled_active_track_color,
SliderThemeData::disabled_inactive_track_color.
See also:
RangeSlider, which includes tick marks defined by this shape.SliderTheme, which can be used to configure the tick mark shape of all sliders in a widget subtree.
Fields§
§tick_mark_radius: Option<f64>The preferred radius of the round tick mark.
If it is not provided, then 1/4 of the SliderThemeData::track_height is used.
Implementations§
Source§impl RoundRangeSliderTickMarkShape
impl RoundRangeSliderTickMarkShape
Sourcepub const fn new() -> RoundRangeSliderTickMarkShape
pub const fn new() -> RoundRangeSliderTickMarkShape
Create a range slider tick mark that draws a circle.
Sourcepub const fn tick_mark_radius(
self,
tick_mark_radius: f64,
) -> RoundRangeSliderTickMarkShape
pub const fn tick_mark_radius( self, tick_mark_radius: f64, ) -> RoundRangeSliderTickMarkShape
Dart RoundRangeSliderTickMarkShape(tickMarkRadius:).
Trait Implementations§
impl Copy for RoundRangeSliderTickMarkShape
Source§impl RangeSliderTickMarkShape for RoundRangeSliderTickMarkShape
impl RangeSliderTickMarkShape for RoundRangeSliderTickMarkShape
Source§fn eq_shape(&self, other: &dyn RangeSliderTickMarkShape) -> bool
fn eq_shape(&self, other: &dyn RangeSliderTickMarkShape) -> bool
Value equality, as Dart’s canonicalized const instances are identical.