Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 677 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 677 Bytes

ZIG GTK+

Sample "hello world" GTK+ applications in zig. Based on the examples at GTK+ Getting Started

There are three applications:

  1. manual: uses the in-code method of defining the UI
  2. builder: uses the 'builder.ui' file to define the UI.
  3. 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.12.0 & v0.13.0 on Ubuntu 24.04.

zig build

Run

zig build manual
zig build builder
zig build embedded