Skip to content
This repository was archived by the owner on Apr 14, 2022. It is now read-only.

grelltrier/gtk-layer-shell-gir

Repository files navigation

Crate dependency status Build

THIS REPO WAS ARCHIVED BECAUSE I MOVED IT TO https://github.com/pentamassiv/gtk-layer-shell-gir

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •