diff --git a/emigui/src/widgets.rs b/emigui/src/widgets.rs index 4f05b2ab..0196c3d6 100644 --- a/emigui/src/widgets.rs +++ b/emigui/src/widgets.rs @@ -1,14 +1,14 @@ #![allow(clippy::new_without_default)] -use std::ops::RangeInclusive; - use crate::{ layout::{Direction, GuiResponse}, *, }; +mod slider; mod text_edit; -pub use text_edit::*; + +pub use {slider::*, text_edit::*}; // ---------------------------------------------------------------------------- @@ -320,205 +320,6 @@ impl Widget for RadioButton { // ---------------------------------------------------------------------------- -/// Combined into one function (rather than two) to make it easier -/// for the borrow checker. -type SliderGetSet<'a> = Box) -> f32>; - -pub struct Slider<'a> { - get_set_value: SliderGetSet<'a>, - range: RangeInclusive, - // TODO: label: Option