How to make new bindings



Hi,

I'm trying, well more looking, to make a gtk+ binding for Haxe.
I've tried looking on the gtk+ website, it mention how easy it is to make bindings.
But the thing is I've found nothing on how to actually do it.

Haxe already have an api to call c function, or at least bindings of c function.
So do I have to make glue code for every public function ?
Is it even possible without deep knowledge of the lib you're trying to port ?

I found GObject, I don't exactly understand what it is, but is it an easy solution to bindings ?
Do I make the generic glue between GObject and Haxe and it's enough ?

Just trying to see how big of a project I'm planning.

And of course I have a pretty good idea of the haxe side of things,
how to make the bind usable in haxe, "just" have to make the binding.

Any help would be much appreciated, thanks.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]