[−][src]Function wxbuild_rs::build
pub fn build(folder: &str, add_start: bool, appname: &str) -> Result<()>
Build all cpp files in specified folder and correctly link with wxWidgets.
If add_start is true:
- It will create a cpp file containing wxIMPLEMENT_APP_NO_MAIN(appname)
- It will create wxffi.rs file you should include with: include!(concat!(env!("OUT_DIR"), "/wxffi.rs"))
- wxffi.rs will contain function start() that will run your wx gui. This function will not return while GUI is active.
- appname.h (all lowercase) must exist and have appname class declared.