Sample "hello world" GTK+ applications in zig. Based on the examples at GTK+ Getting Started
There are three applications:
- manual: uses the in-code method of defining the UI
- builder: uses the 'builder.ui' file to define the UI.
- embedded: uses the 'builder.ui' file to define the UI, but embeds the text into the application at compile time
Ensure libgtk3 development headers are installed (ex: libgtk-3-dev). Tested with zig v0.12.0 & v0.13.0 on Ubuntu 24.04.
zig build
zig build manual
zig build builder
zig build embedded