Registry / other / gtk4
library0.11.2rscratesunverified

Rust bindings of the GTK 4 library for building graphical user interfaces.

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

Application
use gtk4::Application;

Creates a simple GTK4 application window.

use gtk4::prelude::*; use gtk4::{Application, ApplicationWindow}; fn main() { let app = Application::builder() .application_id("com.example") .build(); app.connect_activate(|app| { let window = ApplicationWindow::builder() .application(app) .title("Hello GTK4") .default_width(300) .default_height(200) .build(); window.show(); }); app.run(); }
Debug
Known issues
gotchaRequires GTK4 development libraries installed on the system (e.g., `libgtk-4-dev` on Debian).
fix
Install GTK4 development package via your system package manager.
affects: >=0.4.0
Upgrade
Version history
0.11.2latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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