fltk-egui
An FLTK backend for Egui using a GlutWindow. The code is largely based on https://github.com/ArjunNair/egui_sdl2_gl modified for fltk-rs.
Usage
Add to your Cargo.toml:
[]
= { = "1.2.4", = ["enable-glwindow"] }
= "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 GlutWindow, which are sent to egui's event handlers. Other FLTK widgets can function also normally since there is no interference from Egui.
Examples
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
Todo
- Properly handle resizing the GlutWindow: ✅
- Support egui_demo_lib crate directly: ✅
- Clipboard support: ✅
