pub struct RectangularRangeSliderValueIndicatorShape;Expand description
The default shape of a RangeSlider’s value indicators.
See also:
RangeSlider, which includes value indicators defined by this shape.SliderTheme, which can be used to configure the range slider value indicator of all sliders in a widget subtree.
Implementations§
Source§impl RectangularRangeSliderValueIndicatorShape
impl RectangularRangeSliderValueIndicatorShape
Sourcepub const fn new() -> RectangularRangeSliderValueIndicatorShape
pub const fn new() -> RectangularRangeSliderValueIndicatorShape
Create a range slider value indicator that resembles a rectangular tooltip.
Trait Implementations§
impl Copy for RectangularRangeSliderValueIndicatorShape
Source§impl RangeSliderValueIndicatorShape for RectangularRangeSliderValueIndicatorShape
impl RangeSliderValueIndicatorShape for RectangularRangeSliderValueIndicatorShape
Source§fn eq_shape(&self, other: &dyn RangeSliderValueIndicatorShape) -> bool
fn eq_shape(&self, other: &dyn RangeSliderValueIndicatorShape) -> bool
Value equality, as Dart’s canonicalized const instances are identical.
Source§fn get_preferred_size(
&self,
_is_enabled: bool,
_is_discrete: bool,
label_painter: &TextPainter,
text_scale_factor: f64,
) -> Size
fn get_preferred_size( &self, _is_enabled: bool, _is_discrete: bool, label_painter: &TextPainter, text_scale_factor: f64, ) -> Size
Returns the preferred size of the shape, based on the given conditions. Read more
Source§fn get_horizontal_shift(
&self,
app: &App,
parent_box: Option<AnyRenderBox>,
center: Option<Offset>,
label_painter: Option<&TextPainter>,
activation_animation: Option<AnyAnimation<f64>>,
text_scale_factor: Option<f64>,
size_with_overflow: Option<Size>,
) -> f64
fn get_horizontal_shift( &self, app: &App, parent_box: Option<AnyRenderBox>, center: Option<Offset>, label_painter: Option<&TextPainter>, activation_animation: Option<AnyAnimation<f64>>, text_scale_factor: Option<f64>, size_with_overflow: Option<Size>, ) -> f64
Determines the best offset to keep this shape on the screen. Read more
Source§fn paint(
&self,
app: &mut App,
context: &mut PaintingContext,
center: Offset,
activation_animation: AnyAnimation<f64>,
_enable_animation: AnyAnimation<f64>,
_is_discrete: Option<bool>,
is_on_top: Option<bool>,
label_painter: &mut TextPainter,
text_scale_factor: Option<f64>,
size_with_overflow: Option<Size>,
parent_box: AnyRenderBox,
slider_theme: &SliderThemeData,
_text_direction: Option<TextDirection>,
_value: Option<f64>,
_thumb: Option<Thumb>,
)
fn paint( &self, app: &mut App, context: &mut PaintingContext, center: Offset, activation_animation: AnyAnimation<f64>, _enable_animation: AnyAnimation<f64>, _is_discrete: Option<bool>, is_on_top: Option<bool>, label_painter: &mut TextPainter, text_scale_factor: Option<f64>, size_with_overflow: Option<Size>, parent_box: AnyRenderBox, slider_theme: &SliderThemeData, _text_direction: Option<TextDirection>, _value: Option<f64>, _thumb: Option<Thumb>, )
Paints the value indicator shape based on the state passed to it. Read more
impl StructuralPartialEq for RectangularRangeSliderValueIndicatorShape
Auto Trait Implementations§
impl Forget for RectangularRangeSliderValueIndicatorShape
impl Freeze for RectangularRangeSliderValueIndicatorShape
impl Move for RectangularRangeSliderValueIndicatorShape
impl RefUnwindSafe for RectangularRangeSliderValueIndicatorShape
impl Send for RectangularRangeSliderValueIndicatorShape
impl Sync for RectangularRangeSliderValueIndicatorShape
impl Unpin for RectangularRangeSliderValueIndicatorShape
impl UnsafeUnpin for RectangularRangeSliderValueIndicatorShape
impl UnwindSafe for RectangularRangeSliderValueIndicatorShape
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more