| Crates.io | egui_canvas |
| lib.rs | egui_canvas |
| version | 0.1.2 |
| 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 |
| size | 123,900 |
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