gtk-layer-shell 0.2.5

Save gir-generated wrapper for gtk-layer-shell
gtk-layer-shell-0.2.5 has been yanked.
Visit the last successful build: gtk-layer-shell-0.8.2

Crate dependency status Build_x86 Build_aarch64

gtk-layer-shell

This is the safe wrapper for gtk-layer-shell, automatically generated from its .gir file. The unsafe bindings can be found in this subfolder.

Usage

Have a look at the simple example to see how the bindings can be used. It works analogous to the original.

Generating the wrapper

Generating the wrapper yourself is not necessary to be able to use it. You can just use the version published on crates.io. If you want to do it anyways, you need to start by generating the unsafe bindings. Follow the guide on how to do that and come back here.

Now that you have generated the bindings you will want to generate the safe wrapper.

gir -o .
cargo build
cargo test

There should not have been any errors. To make sure everything you need was created, run the following command.

gir -o . -m not_bound

There should not be any output to this command. Let me know if there is so I can fix it. In order to build the documentation, you have to run

gir -c Gir.toml -d ../gir-files --doc-target-path docs.md -m doc
cargo install rustdoc-stripper
rustdoc-stripper -s -n
rustdoc-stripper -g -o docs.md
cargo doc

Congratulations, you've done it :-)

If you want to learn more about gir, have a look at its repo or its book.

Contributing

Pull requests are very welcome :)

License

MIT