summaryrefslogtreecommitdiffstats
path: root/glow/src/widget/slider.rs
diff options
context:
space:
mode:
Diffstat (limited to 'glow/src/widget/slider.rs')
-rw-r--r--glow/src/widget/slider.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/glow/src/widget/slider.rs b/glow/src/widget/slider.rs
new file mode 100644
index 00000000..9a269858
--- /dev/null
+++ b/glow/src/widget/slider.rs
@@ -0,0 +1,13 @@
+//! Display an interactive selector of a single value from a range of values.
+//!
+//! A [`Slider`] has some local [`State`].
+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>;