Function iced_native::widget::helpers::slider

source ·
pub fn slider<'a, T, Message, Renderer>(
    range: RangeInclusive<T>,
    value: T,
    on_change: impl Fn(T) -> Message + 'a
) -> Slider<'a, T, Message, Renderer>where
    T: Copy + From<u8> + PartialOrd,
    Message: Clone,
    Renderer: Renderer,
    Renderer::Theme: StyleSheet,
Expand description

Creates a new Slider.