summaryrefslogblamecommitdiffstats
path: root/wgpu/src/widget/slider.rs
blob: 3a8c2595305530466c12d8992af311aecb9e1c6f (plain) (tree)
1
2
3
4
5
6
7
8
9







                                                                             
                                                                        
                                   




                                                                              
                                                                                
//! Display an interactive selector of a single value from a range of values.
//!
//! A [`Slider`] has some local [`State`].
//!
//! [`Slider`]: struct.Slider.html
//! [`State`]: struct.State.html
use crate::Renderer;

pub use iced_graphics::slider::{Handle, HandleShape, Style, StyleSheet};
pub use iced_native::slider::State;

/// An horizontal bar and a handle that selects a single value from a range of
/// values.
///
/// This is an alias of an `iced_native` slider with an `iced_wgpu::Renderer`.
pub type Slider<'a, T, Message> = iced_native::Slider<'a, T, Message, Renderer>;