View previous topic :: View next topic |
Author |
Message |
Gregor
Joined: 05 May 2006 Posts: 72 Location: Portland, OR
|
Posted: Wed May 31, 2006 7:35 pm Post subject: Autogenerated GTK+ bindings |
|
|
I've been working on bcd.gen, a generator fo bindings to C/C++ libraries in D. It supports a fairly decent number of libraries now, including GTK+. It's of course a one-to-one binding of C functions to D extern (C) definitions.
I'm wondering if the autogenerated GTK+ bindings could be helpful to the Duit project. I imagine you're rolling your own bindings right now, and that's probably difficult to maintain (?), but bcd.gen can generate these bindings automatically, leaving you with more time to make the excellent object oriented frontend
PS: I don't mean to insult your bindings or ability to make them, just trying to give you a helpful option.
PPS: BCD is at http://www.dsource.org/projects/bcd/ |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Wed May 31, 2006 10:53 pm Post subject: Re: Autogenerated GTK+ bindings |
|
|
Gregor wrote: | I've been working on bcd.gen, a generator fo bindings to C/C++ libraries in D. It supports a fairly decent number of libraries now, including GTK+. It's of course a one-to-one binding of C functions to D extern (C) definitions. |
Yes, I have to check it and also Walter's new tool.
Unfortunatly I'm know for delaying the decision to take the obvious path...
is there an example of the gtk bindings? I couldn't find it on your page.
Ant |
|
Back to top |
|
|
Gregor
Joined: 05 May 2006 Posts: 72 Location: Portland, OR
|
Posted: Wed May 31, 2006 11:58 pm Post subject: Re: Autogenerated GTK+ bindings |
|
|
Ant wrote: | Gregor wrote: | I've been working on bcd.gen, a generator fo bindings to C/C++ libraries in D. It supports a fairly decent number of libraries now, including GTK+. It's of course a one-to-one binding of C functions to D extern (C) definitions. |
Yes, I have to check it and also Walter's new tool.
Unfortunatly I'm know for delaying the decision to take the obvious path...
is there an example of the gtk bindings? I couldn't find it on your page.
Ant |
Sorry, the page is kind of worthless right now 8-X ...
In svn, in bcd/test/gtk2.d, there's a very simple app linked against bcd.gtk2.gtk. It's derived trivially from the Hello World example in the GTK+ tutorial. I'm afraid that's the only example I have, but it works and shows how the bindings work *shrugs* |
|
Back to top |
|
|
Gregor
Joined: 05 May 2006 Posts: 72 Location: Portland, OR
|
Posted: Thu Jun 01, 2006 12:19 am Post subject: |
|
|
Whoops! I had forgotten to `svn commit` (or maybe it just didn't go through) ... maybe that's what you meant. They're in properly now. |
|
Back to top |
|
|
Ant
Joined: 06 Mar 2004 Posts: 306 Location: Canada
|
Posted: Thu Jun 01, 2006 12:45 am Post subject: |
|
|
Gregor wrote: | Whoops! I had forgotten to `svn commit` (or maybe it just didn't go through) ... maybe that's what you meant. They're in properly now. |
Yes, that's it. I have to look at it.
thank you,
Ant |
|
Back to top |
|
|
|