experiment of the day:
https://git.sr.ht/~fabrixxm/zint-vapi
Vala bindings for Zint barcode generator library , with a simple Gtk UI to generate barcodes

https://git.sr.ht/~fabrixxm/zint-vapi
Vala bindings for Zint barcode generator library , with a simple Gtk UI to generate barcodes

spaetz likes this.
Sylke Vicious reshared this.
spaetz 1 month ago •
My meagre attemt is here:
https://gitlab.com/sspaeth/speedticket/-/blob/master/vapi/zint.vapi
spaetz 1 month ago •
Going to check it out.
Fabio 1 month ago
https://git.sr.ht/~fabrixxm/zint-vapi/tree/master/item/test/example_3.vala
I wanted to have the
bitmap
field asuint8[]
, mostly because looks vala-y and because it's what is inGdk.PixBuf.from_data()
's signature).I found that it needs a length to works with
Gdk.PixBuf.from_data()
, so I added theget_bitmap()
method to set the length.. It works but I don't know if it's the correct solution... there so much things I'm not sure about and docs are useful only up to a point...(as a side node, the
zint.h
header I have on disk has abitmap_byte_length
field which would be so good to use as length value forbitmap
(setting it directly in field's annotation in vapi) but looks like is not used and docs doesn't mention it.....)spaetz 1 month ago •
Fabio likes this.
Fabio 1 month ago