2024-12-11 05:49:41

First try at GTK+4 from KC3, a wrapper's hell

Work in progress on the GTK+4 wrapper for KC3.

A few wrapper functions were written for a simple hello world. There are a lot more to be written if we look at the number of functions with pointers of the GTK+4 documentation.

All functions with pointers must be wrapped because the libkc3 API only provides us with void **. Sometimes you must set the pointer and sometimes not, so the actual non const type of a pointer is void **.

However and that is a nice feature if you also happen to have your C structs mapped as KC3 structs but the mapping has to be byte-perfect. Which is hard to do also.