Re: Bindings for a 3rd-party library
- From: "Torsten Schönfeld" <kaffeetisch gmx de>
- To: "gtk-perl mailing list" <gtk-perl-list gnome org>
- Subject: Re: Bindings for a 3rd-party library
- Date: Fri, 22 May 2015 09:37:52 +0200
"Daniel Kasak" <d j kasak dk gmail com>:
I'm wondering ... how much work is involved in getting Perl bindings
for this library working? I guess it would depend on how it's written?
Or does the introspection that comes along with gtk3 make it generally
an easy task?
Something like this should get you started:
Glib::Object::Introspection->setup (
basename => 'GtkFlow',
version => '0.2',
package => 'GtkFlow'); # or whatever package you prefer
GtkFlow::Source->new (...)
GtkFlow::Sink->new (...)
For the constructor arguments you might have to use Glib::Object::Introspection::GValueWrapper:
<https://metacpan.org/pod/Glib::Object::Introspection#Converting-a-Perl-variable-to-a-GValue>.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]