pub struct PaddleRangeSliderValueIndicatorShape;Expand description
A variant shape of a RangeSlider’s value indicators. The value indicator
is in the shape of an upside-down pear.
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 PaddleRangeSliderValueIndicatorShape
impl PaddleRangeSliderValueIndicatorShape
Sourcepub const fn new() -> PaddleRangeSliderValueIndicatorShape
pub const fn new() -> PaddleRangeSliderValueIndicatorShape
Create a slider value indicator in the shape of an upside-down pear.
Trait Implementations§
impl Copy for PaddleRangeSliderValueIndicatorShape
Source§impl RangeSliderValueIndicatorShape for PaddleRangeSliderValueIndicatorShape
impl RangeSliderValueIndicatorShape for PaddleRangeSliderValueIndicatorShape
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 PaddleRangeSliderValueIndicatorShape
Auto Trait Implementations§
impl Forget for PaddleRangeSliderValueIndicatorShape
impl Freeze for PaddleRangeSliderValueIndicatorShape
impl Move for PaddleRangeSliderValueIndicatorShape
impl RefUnwindSafe for PaddleRangeSliderValueIndicatorShape
impl Send for PaddleRangeSliderValueIndicatorShape
impl Sync for PaddleRangeSliderValueIndicatorShape
impl Unpin for PaddleRangeSliderValueIndicatorShape
impl UnsafeUnpin for PaddleRangeSliderValueIndicatorShape
impl UnwindSafe for PaddleRangeSliderValueIndicatorShape
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