[cairo] cairo-ocaml bindings and some questions about the new API

Olivier Andrieu oliv__a at users.sourceforge.net
Mon May 23 05:02:09 PDT 2005


Hi,

for those interested, I've updated the ocaml bindings (in the
caio-ocaml cvs module) to the new cairo API (0.5.0). The various
examples seem to be working, except one (see below). The language
binding guide was quite helpful, thanks a lot Owen for writing this !

I have a couple of trivial questions/issues :

- I think cairo_status_string would be more useful if it took a
  cairo_status_t argument (instead of cairo_t)

- in cairo-ps.h there is a prototype for cairo_ps_surface_set_dpi but
  this functions is not implemented

- the language binding guide mentions a cairo_solid_pattern_t but I
  couldn't find any method/constructor related this type

- cairo_surface_finish doesn't seem to work as it should. I did this :
     * create a PS surface
     * create a context
     * draw on the surface
     * cairo_show_page ()
     * cairo_surface_finish ()
  but cairo_surface_finish raises a BAD_NESTING exception (apparently
  because the context still references it)

-- 
   Olivier



More information about the cairo mailing list