egui_float_scroller

Crates.ioegui_float_scroller
lib.rsegui_float_scroller
version
sourcesrc
created_at2024-11-07 04:01:26.096619
updated_at2024-11-07 04:14:45.851581
descriptionA fixed-size scrollbar widget for egui
homepage
repositoryhttps://github.com/yourusername/egui-fixed-scrollbar
max_upload_size
id1439462
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
(rowanfr)

documentation

https://docs.rs/egui-fixed-scrollbar

README

egui-fixed-scrollbar

A fixed-size scrollbar widget for egui that provides a simple way to add scrollbars to your egui applications which modify floats.

Features

  • Fixed-width scrollbar with configurable handle height
  • Smooth scrolling support
  • Configurable scroll sensitivity
  • Multiple container options (side panel, floating, docked)

Usage

Add to your Cargo.toml:

[dependencies]
egui-fixed-scrollbar = "0.1.0"

Basic usage:

use egui_fixed_scrollbar::FixedScrollbar;

let scrollbar = FixedScrollbar::new(0.0);

// As a side panel:
scrollbar.show_in_side_panel(ctx, "my_scrollbar");

// As a floating element:
scrollbar.show_floating(ui, egui::pos2(100.0, 100.0));

// Or docked to an area:
let area = ui.available_rect_before_wrap();
scrollbar.show_docked(ui, area);

// Or directly added to a UI:
ui.add(scrollbar);

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

Commit count: 0

cargo fmt