gtk-layer-shell 0.2.2

Save gir-generated wrapper for gtk-layer-shell
docs.rs failed to build gtk-layer-shell-0.2.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: gtk-layer-shell-0.8.2

Crate dependency status Build

gtk-layer-shell

Safe wrapper for gtk-layer-shell, generated from .gir file

Usage

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.

Generate the wrapper

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-gir

If you have a newer .gir file then drop it in ./gir-files and run

gir

After this you can run

cargo build

There 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 edit

This however is overwritten each time gir is ran again so it is a bit hacky. Let me know how I can do this properly

TODO

Auto-generate the documentation

Contributing

Pull requests are very welcome :)

License

MIT