Module slider

Source
Expand description

slider(...) docs.

§fields

  • min maximum value.
  • max minimum value.

§Optional fields

  • label
  • format format string (in printf format)
  • power
  • catch override widget label.
  • map applies a mapping function to &mut Self (works the same as in the input example)

§Example

#[derive(imgui_ext::Gui)]
struct Sliders {
    #[imgui(slider(min = 0.0, max = 1.0))]
    foo: f32,
    #[imgui(slider(min = 0, max = 16, format = "bar = %.02f"))]
    bar: [i32; 2],
}

§Result

Structs§

SliderParams

Traits§

Slider