Merge pull request #407 from hecrj/feature/generic-slider
Make `Slider` value type generic
This commit is contained in:
commit
d19c02035f
10 changed files with 171 additions and 114 deletions
|
|
@ -16,8 +16,8 @@ pub use iced_style::slider::{Handle, HandleShape, Style, StyleSheet};
|
|||
/// values.
|
||||
///
|
||||
/// This is an alias of an `iced_native` slider with an `iced_wgpu::Renderer`.
|
||||
pub type Slider<'a, Message, Backend> =
|
||||
iced_native::Slider<'a, Message, Renderer<Backend>>;
|
||||
pub type Slider<'a, T, Message, Backend> =
|
||||
iced_native::Slider<'a, T, Message, Renderer<Backend>>;
|
||||
|
||||
const HANDLE_HEIGHT: f32 = 22.0;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue