GNOME Bugzilla – Bug 609932
Add bindings for rsvg_handle_get_dimensions{_sub,}
Last modified: 2010-05-17 22:15:42 UTC
Here's a patch to add bindings for rsvg_handle_get_dimensions and rsvg_handle_get_dimensions_sub. I don't know the Perl guts that well so I'm not 100% sure if this is correct but I based it on the bindings for cairo_font_extents so it should be vaguely right. It's quite hard to use Cairo backend without these functions so it would be good to have them.
Created attachment 153775 [details] [review] Add bindings for rsvg_handle_get_dimensions{_sub,} This adds bindings for rsvg_handle_get_dimensions and rsvg_handle_get_dimensions_sub. They both use a new type called RsvgDimensionData which is added to the typemap.
Review of attachment 153775 [details] [review]: Thanks for the patch (in git form even!). Just two things that need fixing before it can go in: * Since typemaps are public, and the new typemap uses a new converter, we need to properly export this converter via rsvg2perl.h. * The new methods need tests.
These methods (and a couple more) are now wrapped in the just-released 0.11. Unfortunately, I forgot about your patch and ended up writing nearly the exact same code. :-/ Anyway, thanks for the patch!