GObject introspection and cairo?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

GObject introspection and cairo?

Stefan Salewski-2
I am currently working again on the gobject introspection based
bindings for Nim language (https://github.com/StefanSalewski/nim-gi).

And I wonder why there is only minimal support for cairo --
/usr/share/gir-1.0/cairo-1.0.gir is minimal.

Of course cairo is not gobject based, but is that the real problem? I
think glib is not gobject based too?

Of course cairo interface is not large, so I can used the c2nim
generated cairo bindings from https://github.com/ngtk3/nim-cairo and
adapt it manually.

But it would be nicer with direct introspection support -- not only for
Nim, but also for other gi based bindings like Ruby, Python, Rust,
Crystal and such I assume?

And a not directly related remark: nim-chess3 is now available -- but
it uses still the c2nim generated GTK 3.20 bindings. Maybe next winter
I will replace that basic GUI with a real one.
https://github.com/StefanSalewski/nim-chess3
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GObject introspection and cairo?

Emmanuele Bassi
On 9 May 2017 at 15:39, Stefan Salewski <[hidden email]> wrote:
> I am currently working again on the gobject introspection based
> bindings for Nim language (https://github.com/StefanSalewski/nim-gi).
>
> And I wonder why there is only minimal support for cairo --
> /usr/share/gir-1.0/cairo-1.0.gir is minimal.
>
> Of course cairo is not gobject based, but is that the real problem? I
> think glib is not gobject based too?

Cairo has an internal type system — image surfaces "inherit" from
generic surfaces, etc. — whereas GLib data structures do not have
inheritance.

Additionally, things like error domains mapped to exceptions are not
going to work without GError.

Ciao,
 Emmanuele.

--
https://www.bassi.io
[@] ebassi [@gmail.com]
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: GObject introspection and cairo?

Nicola Fontana-3
In reply to this post by Stefan Salewski-2
Il Tue, 09 May 2017 16:39:10 +0200 Stefan Salewski <[hidden email]> scrisse:

> I am currently working again on the gobject introspection based
> bindings for Nim language (https://github.com/StefanSalewski/nim-gi).
>
> And I wonder why there is only minimal support for cairo --
> /usr/share/gir-1.0/cairo-1.0.gir is minimal.

Hi Stefan,

not so long ago Emmanuele accepted a few patches that improves
this situation:

https://bugzilla.gnome.org/show_bug.cgi?id=743364

No idea how long does it take to have that upstream.

Ciao.
--
Nicola
_______________________________________________
gtk-list mailing list
[hidden email]
https://mail.gnome.org/mailman/listinfo/gtk-list
Loading...