pub struct RoundedRectSliderTrackShape;Expand description
A slider’s default track, the reference’s rounded rectangle: the travelled part from the start to the thumb, two pixels thicker and rounded; the rest from the thumb to the end; each reaching half a track past the thumb, under it. A secondary value beyond the thumb runs from it, rounded at its far end.
Trait Implementations§
Source§impl Clone for RoundedRectSliderTrackShape
impl Clone for RoundedRectSliderTrackShape
impl Copy for RoundedRectSliderTrackShape
Source§impl Debug for RoundedRectSliderTrackShape
impl Debug for RoundedRectSliderTrackShape
Source§impl SliderTrackShape for RoundedRectSliderTrackShape
impl SliderTrackShape for RoundedRectSliderTrackShape
Source§fn paint(
&self,
scene: &mut Scene,
track: Rect,
thumbs: &[f32],
secondary: Option<f32>,
paint: &SliderPaint<'_>,
)
fn paint( &self, scene: &mut Scene, track: Rect, thumbs: &[f32], secondary: Option<f32>, paint: &SliderPaint<'_>, )
Paints the track along
track — the travel, inset in the slider’s box, as tall as the
theme’s track height — with the thumbs’ centres across at thumbs: one for a slider,
the start and the end for a range slider. secondary is where a slider’s secondary
value lies, if it has one.impl StructuralPartialEq for RoundedRectSliderTrackShape
Auto Trait Implementations§
impl Freeze for RoundedRectSliderTrackShape
impl RefUnwindSafe for RoundedRectSliderTrackShape
impl Send for RoundedRectSliderTrackShape
impl Sync for RoundedRectSliderTrackShape
impl Unpin for RoundedRectSliderTrackShape
impl UnsafeUnpin for RoundedRectSliderTrackShape
impl UnwindSafe for RoundedRectSliderTrackShape
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