Registry / other / gtk4-layer-shell

gtk4-layer-shell

JSON →
library0.8.0rscratesunverified

Safe gir-generated wrapper for gtk4-layer-shell, enabling layer shell protocol support in GTK4.

# Cargo.toml [dependencies] gtk4-layer-shell = "0.8.0"
INSTALL
IMPORT
SIG · GTK4-LAYER-SHELL
G
gtk4-layer-shell
otherrustv0.8.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

LayerShell
✓ use gtk4_layer_shell::LayerShell;

Initialize a GTK4 window as a layer shell surface.

use gtk4_layer_shell::LayerShell; use gtk4::prelude::*; fn main() { gtk4::init().unwrap(); let window = gtk4::ApplicationWindow::new(); window.init_layer_shell(); window.set_layer(gtk4_layer_shell::Layer::Top); window.show_all(); gtk4::main(); }
Debug
Known issues
gotchaRequires a Wayland compositor that supports the layer-shell protocol.
fix
Ensure you are running under a compatible Wayland compositor (e.g., wlroots-based).
affects: >=0.8.0
Upgrade
Version history
0.8.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
16 hits · last 30 days
node
16
Resources
gtk4-layer-shell — cargo add gtk4-layer-shell · libregistry