8 releases (4 breaking)
new 0.5.0 | Feb 20, 2025 |
---|---|
0.4.0 | Feb 9, 2025 |
0.3.3 | Dec 22, 2024 |
0.3.1 | Nov 8, 2024 |
0.1.0 | Nov 1, 2024 |
#267 in GUI
170 downloads per month
270KB
286 lines
egui Double Slider Widget
A double slider widget for the GUI rust library egui.
Add double slider along with egui to your cargo.toml
.
egui_double_slider = "0.4.0"
egui = "0.31"
To run the example:
cargo run --example example
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
~7–49MB
~742K SLoC