Registry / other / gtk4-sys

gtk4-sys

JSON →
library0.11.3rscratesunverified

FFI bindings of GTK 4.

# Cargo.toml [dependencies] gtk4-sys = "0.11.3"
INSTALL
IMPORT
SIG · GTK4-SYS
G
gtk4-sys
otherrustv0.11.3
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.

GtkApplication
use gtk4_sys::GtkApplication;

Create a GTK4 application using raw FFI bindings.

use gtk4_sys::GtkApplication; fn main() { unsafe { let app = gtk4_sys::gtk_application_new("com.example", 0); println!("GTK application created."); } }
Debug
Known issues
gotchaUnsafe code; requires careful memory management and GTK initialization.
fix
Use safe wrappers like gtk4 crate instead; ensure gtk_init is called.
affects: >=0.1.0
Upgrade
Version history
0.11.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Meta
1
Resources
gtk4-sys — cargo add gtk4-sys · libregistry