14 unstable releases (3 breaking)
|new 0.4.0||Oct 26, 2021|
|0.3.6||Oct 11, 2021|
|0.3.1||Sep 29, 2021|
|0.2.3||Sep 25, 2021|
|0.1.2||Sep 2, 2021|
#14 in #widgets
153 downloads per month
Used in fe-image-widget
An FLTK backend for Egui using a GlWindow. The code is largely based on https://github.com/ArjunNair/egui_sdl2_gl modified for fltk-rs.
Add to your Cargo.toml:
[dependencies] fltk-egui = "0.3"
The basic premise is that egui is an immediate mode gui, while FLTK is retained. To be able to run Egui code, events and redrawing would need to be handled/done in the FLTK event loop. The events are those of the GlWindow, which are sent to egui's event handlers. Other FLTK widgets can function also normally since there is no interference from Egui. Please check the basic example.
To run the examples, just run:
$ cargo run --example demo_windows $ cargo run --example triangle $ cargo run --example basic $ cargo run --example embedded
A demo app can be found here: https://github.com/fltk-rs/demos/tree/master/egui-demo
- Properly handle resizing the GlWindow: ✅
- Support egui_demo_lib crate directly: ✅
- Clipboard support: ✅