GNOME Bugzilla – Bug 568226
Provide query operations on the dom for interactive UIs
Last modified: 2017-12-13 17:35:34 UTC
To be able to load parts from a user interface from an SVG item (similar to macslow's cairo-clock) _and_ to provide interactive feedback (or click/drag), one needs to know the exposed area of a part of an SVG file. Rendering the part with cairo already works nicely with rsvg_handle_render_cairo_sub(); but for hit-detection something like rsvg_handle_get_sub_extents(RsvgHandle*,char const*,RsvgExtents*) with typedef struct { gint x, y, width, height; } RsvgExtents; would be required (where the char const* parameter would be the same as for render_cairo_sub().
You mean getting the bbox of some element? There's rsvg_handle_get_{dimensions,position}_sub on trunk (which I proposed to be merged in bug 564528).
Exactly, thanks for the pointers, will try to come up with a patch then.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/librsvg/issues/29.