white-frame
This is just an example showing the use of fltk-build to create native C/C++ FLTK and cfltk modules for fltk-rs.
This repo contains 2 examples which can be found in the examples folder. The basic example uses the newly defined WhiteFrame widget, defined in src/cfl_white_box.* and src/Fl_White_Box.*.
The second example, just uses an externally visibile C function in the src/unrelated.cpp file, which just raises a window and runs FLTK's event loop!
The bind script in this repo just invokes bindgen to generate a Rust wrapper to our cfltk macros, notice we pass the include path at the end.
There's also a CMake branch showing usage with CMake.