gtk-layer-shell 0.1.0

Save gir-generated wrapper for gtk-layer-shell
docs.rs failed to build gtk-layer-shell-0.1.0
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.0

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", open una terminal in it and r

gir

unfortunately you need to change the functions.rs file in the /src/auto folder. Please change

use Edge;
use Layer;

to

use crate::Edge;
use crate::Layer;

I am trying to solve this issue. If you have an idea, a PR is always welcome :). After this you can run

cargo build

There should not have been any errors, just some warnings about unused stuff.

TODO

  • Get rid of the manual changes of functions.rs
  • Auto-generate the documentation

Contributing

Pull requests are very welcome :)

License

MIT