Skip to content

hacknus/egui_double_slider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.2"
egui = "0.29"

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)

About

A double slider widget for egui.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages