Skip to main content

SliderValueIndicatorShape

Trait SliderValueIndicatorShape 

Source
pub trait SliderValueIndicatorShape {
    // Required method
    fn paint(
        &self,
        scene: &mut Scene,
        centre: Point,
        text: String,
        scale: f32,
        paint: &SliderPaint<'_>,
    );
}
Expand description

Paints the value indicator over a thumb: the reference’s value indicator shapes.

Required Methods§

Source

fn paint( &self, scene: &mut Scene, centre: Point, text: String, scale: f32, paint: &SliderPaint<'_>, )

Paints text over the thumb centred on centre, grown to scale (0..=1).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§