pub fn slider(&mut self, text: &str, range: Range<f32>) -> f32 {
        let id = Id::from_str(text, CompType::Slider, &self.salt);
        let mut value = *self.slider_map.entry(id).or_insert((range.start + range.end) / 2.0);
        self.slider_ptr(text, range, &mut value);
        self.slider_map.insert(id, value);
        value
    }
/// Creates a new slider that allows selecting values from the given range. Returns a value
/// from within the range.
///
/// Every slider should have a unique display text. Buttons with the same name will behave
/// like a singe slider. If the text contains the character sequence "##", that sequence and
/// any subsequent characters will not be shown. Using this, you can have multiple sliders
/// show the same text.
Creates a new slider that allows selecting values from the given range. Returns a value
from within the range.

Every slider should have a unique display text. Buttons with the same name will behave
like a singe slider. If the text contains the character sequence "##", that sequence and
any subsequent characters will not be shown. Using this, you can have multiple sliders
show the same text.
Creates a new slider that allows selecting values from the given range . Returns a value from within the range . Every slider should have a unique display text . Buttons with the same name will behave like a singe slider . If the text contains the character sequence " ## " that sequence and any subsequent characters will not be shown . Using this you can have multiple sliders show the same text .
pub fn slider(&mut self, text: &str, range: Range<f32>) -> f32 {
        let id = Id::from_str(text, CompType::Slider, &self.salt);
        let mut value = *self.slider_map.entry(id).or_insert((range.start + range.end) / 2.0);
        self.slider_ptr(text, range, &mut value);
        self.slider_map.insert(id, value);
        value
    }
pub fn slider ( & mut self , text : & str , range : Range < f32 > ) -> f32 { let id = Id :: from_str ( text , CompType :: Slider , & self . salt ) ; let mut value = * self . slider_map . entry ( id ) . or_insert ( ( range . start + range . end ) / 2.0 ) ; self . slider_ptr ( text , range , & mut value ) ; self . slider_map . insert ( id , value ) ; value }
Creates a new slider that allows selecting values from the given range.
Creates a new slider that allows selecting values from the given range .
&mut self
text
&str
range
Range<f32>
&mut self
text
&str
range
Range<f32>