Skip to main content

SliderOverlayShape

Trait SliderOverlayShape 

Source
pub trait SliderOverlayShape {
    // Required method
    fn paint(
        &self,
        scene: &mut Scene,
        centre: Point,
        activation: f32,
        color: Color,
        paint: &SliderPaint<'_>,
    );
}
Expand description

Paints the halo around a hovered, focused or held thumb: the reference’s overlay shape.

Required Methods§

Source

fn paint( &self, scene: &mut Scene, centre: Point, activation: f32, color: Color, paint: &SliderPaint<'_>, )

Paints the halo centred on centre, grown to activation (0..=1) in color.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§