Re: Quest for ml_gdk_cairo_create
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Jul 14, 2015 at 01:19:47AM +0200, Christophe Troestler wrote: > On Mon, 13 Jul 2015 16:49:44 -0400, Hendrik Boom [email protected] [ocaml_beginners] wrote: > > > > On Mon, Jul 13, 2015 at 09:49:48PM +0200, Christophe Troestler wrote: > > > Hi, > > > > > > Here is a example of using Cairo with gtk > > https://github.com/Chris00/ocaml-cairo/blob/master/examples/gtk_demo.ml that > > comes with oasis compiling directives: > > https://github.com/Chris00/ocaml-cairo/blob/master/_oasis > > > > > > Note that this is another binding to Cairo, known as cairo2 in OPAM. > > > > I'll look into it. Thanks. Does it connect with a different version > > of cairo or gtk? > > Probably not. This version structures more the API using the OCaml module system and plays better with the GC — I had segfaults using the former. If it fails to segfault, it's probably better. And the 2 in its name does seem to suggest it's a later development. I'll be lookng at it tomorrow. -- hendrik