[cairo] bindings and new svg version API

Steven Chaplin stevech1097 at yahoo.com.au
Wed Jul 5 20:49:47 PDT 2006


On Tue, 2006-07-04 at 11:47 -0500, Jonathon Jongsma wrote:
> I'm trying to finish up wrapping the new 1.2 API for cairomm (C++) and
> I have a question on the new svg version API.
> 
> There are 3 new functions here:
> cairo_svg_surface_restrict_to_version
> cairo_svg_get_versions
> cairo_svg_version_to_string
> 
> The first one is obviously meant to be a class member function, but
> the last two are not associated with any Surface object, but they are
> obviously closely related to the svg surface type.  I'm leaning toward
> making them static member functions of SvgSurface, but they could also
> just be wrapped as standalone functions.  I'm curious what other
> bindings have done, or whether those who designed the API had any
> expectations for language bindings here.

The 1.2 Python bindings have wrappers for most but not all cairo
functions, and these three have not been wrapped yet. But I agree with
making cairo_svg_surface_restrict_to_version a class member function and
the other two static member functions of SvgSurface.

Steve

Send instant messages to your online friends http://au.messenger.yahoo.com 


More information about the cairo mailing list