This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! Minimal XCB + Cairo example in Zig | |
//! Dependencies: libc, xcb, cairo | |
//! install XCB development files | |
//! sudo apt-get install libxcb1-dev | |
//! install cairo development files | |
//! sudo apt-get install libcairo2-dev | |
//! build and run with: | |
//! zig build-exe xcb.zig -lc -lxcb -lcairo && ./xcb | |
const std = @import("std"); | |
const c = @cImport({ |