Zig native bindings for neuswc with interoperability with zig-wayland
| example | example: use non-shift keysyms | |
| .gitignore | initial commit | |
| build.zig | initial commit | |
| build.zig.zon | build.zig.zon: use proper source file | |
| LICENSE | initial commit | |
| README.md | initial commit | |
| swc.zig | feat: support returning error from binding handler | |
zig-swc
zig 0.15 bindings for
neuswc that are a little
nicer to use than the output of zig translate-c.
Example
zig-swc includes a Zig translated version of the example compositor in swc, which can be ran as such:
zig build -Dexample=true
swc-launch zig-out/bin/example
API
Currently, zig-swc attempts to remain a close code format to
zig-wayland, to encourage
its usage inside Zig code over libwayland, however there is a style choices
pertaining to the order of arguments in listeners, where no comptime type
is given, but is inferred from the data argument, requiring it to be first
in the argument list rather than after the handler function pointer seen in
zig-wayland.