ziggtk
ziggtk copied to clipboard
Sample GTK+ applications in the zig programming language
ZIG GTK+
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
Build
Ensure libgtk3 development headers are installed (ex: libgtk-3-dev). Tested with zig v0.8.1 on Ubuntu 20.04.
zig build
Run
zig build manual
zig build builder
zig build embedded