After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 568226 - Provide query operations on the dom for interactive UIs
Provide query operations on the dom for interactive UIs
Status: RESOLVED OBSOLETE
Product: librsvg
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: librsvg maintainers
librsvg maintainers
Depends on:
Blocks:
 
 
Reported: 2009-01-18 21:59 UTC by Sven Herzberg
Modified: 2017-12-13 17:35 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sven Herzberg 2009-01-18 21:59:30 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().
Comment 1 Christian Persch 2009-01-18 23:13:58 UTC
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).
Comment 2 Sven Herzberg 2009-01-31 12:12:03 UTC
Exactly, thanks for the pointers, will try to come up with a patch then.
Comment 3 GNOME Infrastructure Team 2017-12-13 17:35:34 UTC
-- 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.