Iterator interface for accessing path data
@jjongsma
Submitted by Jonathon Jongsma Assigned to Murray Cumming
Description
Currently there's no way to access the path data without reverting to the C struct and mucking around with pointers. I'd like to have a more STL-like iterator interface for this (which is also recommended in the Cairo bindings guidelines: http://www.cairographics.org/manual/bindings-path.html). I've been playing around with a few ideas and hope to get some feedback on them. For background on the underlying C type, see http://www.cairographics.org/manual/cairo-Paths.html#cairo-path-data-t
I'm attaching a patch and a tarball that contains a new example program to demonstrate the new API. This isn't polished by any means and I there may still be large problems with it (and there almost definitely are many small problems with it).
Any feedback would be greatly appreciated.
Version: CVS HEAD