THIS REPO WAS ARCHIVED BECAUSE I MOVED IT TO https://github.com/pentamassiv/gtk-layer-shell-gir
Safe wrapper for gtk-layer-shell, generated from .gir file
The wrapper works just like described in gtk-layer-shell.h, except that you can use Rust types instead of pointers and such. Unfortunately I am struggling to auto-generate the docs.
Generating the wrapper yourself is not necessary to be able to use it. If you want to do it anyways, just clone the repository and the submodule "gir-files" with
git clone --recurse-submodules -j8 https://github.com/grelltrier/gtk-layer-shell-gir.git
cd ./gtk-layer-shell-girIf you have a newer .gir file then drop it in ./gir-files and run
girAfter this you can run
cargo buildThere should not have been any errors, just some warnings about unused stuff. Currently I am getting the error that the crate ffi can not be found. I manually added the following line to enums.rs and functions.rs.
use gtk_layer_shell_sys as ffi; // Manual editThis however is overwritten each time gir is ran again so it is a bit hacky. Let me know how I can do this properly
Auto-generate the documentation
Pull requests are very welcome :)