peter at freepascal.org
Thu Jun 13 07:21:26 CEST 2002
> Hi there,
> >> Is anybody already working on gtk+-2.0 units for freepascal?
> > Not as far as we know. But every volounteer is welcome :).
> > Most work can be done probably using h2pas, so this job isn't that hard.
> Please correct me if I am wrong: the current GTK+ unit is simply a
> Pascal wrapper around the C API for GTK+. Not very easy to use, although
> the Pascal bindings are easier to program for than the C original API.
> The Lazarus Project is building an OO wrapper for GTK+ based on Borland
> VCL and I guess close to the current Delphi/Kylix CLX.
> But there are OO bindins for GTK+ for Java and C++, and there's a
> contributed Object Pascal wrapper. The Java binding is *much* easier,
> and I think as there are other OO bindings (for Phyton, PHP, ...) these
> bindings should be as close as it's possible given each language structure.
> Are there someone working on this, or some kind of collaboration between
> the different GTK OO wrappers?
The OO wrappers would still need an interface to the library functions. Those functions
are in the current GTK units. And these GTK units still need to be updated to GTK+ 2.0.
Maybe it gtk20.pp should be created if there are too much conflicts
More information about the fpc-pascal