#gtk #wayland #gir #wrapper #gtk-layer-shell

gtk-layer-shell

Save gir-generated wrapper for gtk-layer-shell

7 releases

new 0.2.2 Aug 1, 2021
0.2.1 Jul 18, 2021
0.2.0 Nov 4, 2020
0.1.3 Oct 8, 2020
0.1.2 Aug 24, 2020

#84 in GUI

Download history 13/week @ 2021-04-12 22/week @ 2021-04-19 15/week @ 2021-04-26 50/week @ 2021-05-03 11/week @ 2021-05-10 29/week @ 2021-05-17 12/week @ 2021-05-24 71/week @ 2021-05-31 54/week @ 2021-06-07 51/week @ 2021-06-14 42/week @ 2021-06-21 39/week @ 2021-06-28 42/week @ 2021-07-05 64/week @ 2021-07-12 60/week @ 2021-07-19 87/week @ 2021-07-26

200 downloads per month

MIT license

3.5MB
778 lines

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

Dependencies

~16MB
~382K SLoC