Crates.io | egui_float_scroller |
lib.rs | egui_float_scroller |
version | |
source | src |
created_at | 2024-11-07 04:01:26.096619 |
updated_at | 2024-11-07 04:14:45.851581 |
description | A fixed-size scrollbar widget for egui |
homepage | |
repository | https://github.com/yourusername/egui-fixed-scrollbar |
max_upload_size | |
id | 1439462 |
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` |
size | 0 |
A fixed-size scrollbar widget for egui that provides a simple way to add scrollbars to your egui applications which modify floats.
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);
Licensed under either of
at your option.
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.