egui_double_slider

Crates.ioegui_double_slider
lib.rsegui_double_slider
version
sourcesrc
created_at2024-11-01 17:00:47.695085
updated_at2024-12-05 18:22:47.975207
descriptionA double slider widget for egui.
homepagehttps://github.com/hacknus/egui_double_slider
repositoryhttps://github.com/hacknus/egui_double_slider
max_upload_size
id1432061
Cargo.toml error:TOML parse error at line 18, column 1 | 18 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
(hacknus)

documentation

https://docs.rs/egui_double_slider

README

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)
Commit count: 16

cargo fmt