pub struct RoundSliderTickMarkShape {
pub tick_mark_radius: Option<f64>,
}Expand description
The default shape of each Slider tick mark.
Tick marks are only displayed if the slider is discrete, which can be done
by setting the Slider::divisions to an integer value.
It paints a solid circle, centered in the 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:
Slider, 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 RoundSliderTickMarkShape
impl RoundSliderTickMarkShape
Sourcepub const fn new() -> RoundSliderTickMarkShape
pub const fn new() -> RoundSliderTickMarkShape
Create a slider tick mark that draws a circle.
Sourcepub const fn tick_mark_radius(
self,
tick_mark_radius: f64,
) -> RoundSliderTickMarkShape
pub const fn tick_mark_radius( self, tick_mark_radius: f64, ) -> RoundSliderTickMarkShape
Dart RoundSliderTickMarkShape(tickMarkRadius:).
Trait Implementations§
Source§impl Clone for RoundSliderTickMarkShape
impl Clone for RoundSliderTickMarkShape
impl Copy for RoundSliderTickMarkShape
Source§impl Debug for RoundSliderTickMarkShape
impl Debug for RoundSliderTickMarkShape
Source§impl Default for RoundSliderTickMarkShape
impl Default for RoundSliderTickMarkShape
Source§impl PartialEq for RoundSliderTickMarkShape
impl PartialEq for RoundSliderTickMarkShape
Source§impl SliderTickMarkShape for RoundSliderTickMarkShape
impl SliderTickMarkShape for RoundSliderTickMarkShape
Source§fn eq_shape(&self, other: &dyn SliderTickMarkShape) -> bool
fn eq_shape(&self, other: &dyn SliderTickMarkShape) -> bool
Value equality, as Dart’s canonicalized const instances are identical.