Crates.io | egui_canvas |
lib.rs | egui_canvas |
version | |
source | src |
created_at | 2025-02-22 18:07:01.724733+00 |
updated_at | 2025-03-04 14:57:04.749171+00 |
description | A TKinter-like canvas widget for egui. |
homepage | |
repository | https://gitlab.com/urciteniefilipdubina/egui_canvas |
max_upload_size | |
id | 1565627 |
Cargo.toml error: | TOML parse error at line 25, column 1 | 25 | 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 |
This crate implements a Canvas
struct, which implements
egui's Widget
trait while aiming to be
as similar to TKinter (python) Canvas widget as possible.
In practise, this means it is an global state holder for egui::Shape
objects and a click handler closure.
This is a hobby project and will not be regularly updated/maintained.
If you find out something is not working / could be made better, open an issue.
Check out the documentation and the examples.
click
- enables click handler functionality. Enabled by default.image
- enables image functionality. Not yet implemented.unsafe
. For now,
safety is ensured by the fact that dropping the canvas object needs to wait
for a lock on the Mutex
of the click handler, which is locked if the click
handler is running.std::rc::Rc
.egui::Ui::available_size
doesn't return the whole size of the window)eframe
and egui
crates
(because it only implements a widget)native-dialog
together with this one