#egui #widgets #slider #double-slider

egui_double_slider

A double slider widget for egui

6 releases

0.3.3 Dec 22, 2024
0.3.2 Dec 5, 2024
0.3.1 Nov 8, 2024
0.2.0 Nov 1, 2024
0.1.0 Nov 1, 2024

#269 in GUI

Download history 287/week @ 2024-10-30 90/week @ 2024-11-06 78/week @ 2024-11-13 16/week @ 2024-11-20 8/week @ 2024-11-27 161/week @ 2024-12-04 23/week @ 2024-12-11 111/week @ 2024-12-18 11/week @ 2024-12-25 8/week @ 2025-01-01

164 downloads per month

Apache-2.0

265KB
283 lines

egui Double Slider Widget

crates.io Docs Rust

A double slider widget for the GUI rust library egui.

screenshot

Add double slider along with egui to your cargo.toml.

egui_double_slider = "0.3.3"
egui = "0.30"

Example code:

use egui_double_slider::DoubleSlider;
use egui;

fn main() {
    egui::__run_test_ui(|ui| {
        ui.add(
            DoubleSlider::new(
                &mut self.slider_val_low_1,
                &mut self.slider_val_high_1,
                10.0..=300.0,
            )
                .width(width)
                .separation_distance(10.0),
        );
    });
}

TODO:

  • extend for integer, f64
  • better connection to egui ctx style (like the normal Slider widget)

Dependencies

~8–45MB
~739K SLoC