Referencing elements in an SVG file
Geoff Johnson <[email protected]> Tue, 11 Mar 2014 21:39:04 -0700
| Newsgroups | gmane.comp.gnome.lib.librsvg.devel |
|---|---|
| Message-ID | <CANBEJ140F=4H2LdnnizV0i4M_8qgC-cDKBQiZPXzDLnhtvd5Vg@mail.gmail.com> |
--===============7800573484458497908== Content-Type: multipart/alternative; boundary=001a11c153f6d1143804f4616b01 --001a11c153f6d1143804f4616b01 Content-Type: text/plain; charset=ISO-8859-1 The example at https://github.com/mbr/clutter/blob/master/ClutterClockWidget.vala shows how to use librsvg to load an SVG into a Cairo ImageSurface. I'm trying to use this in a Clutter actor draw method but I need to be able to reference elements inside the SVG to change primarily the text of some values. I've seen examples in librsvg that would allow me to do this but the GObject interface that is exposed hides a lot of the functions that would give me this. I'd rather use just that interface so I'm wondering if that's even possible? I've also tried to access the DOM through WebKit but that didn't work, a few posters to a question on StackExchange suggested that it was related to it not knowing the MIME type of an SVG file. Thanks --001a11c153f6d1143804f4616b01 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">The example at <a href=3D"https://github.com/mbr/clutter/b= lob/master/ClutterClockWidget.vala">https://github.com/mbr/clutter/blob/mas= ter/ClutterClockWidget.vala</a> shows how to use librsvg to load an SVG int= o a Cairo ImageSurface. I'm trying to use this in a Clutter actor draw = method but I need to be able to reference elements inside the SVG to change= primarily the text of some values.<div> <br></div><div>I've seen examples in librsvg that would allow me to do = this but the GObject interface that is exposed hides a lot of the functions= that would give me this. I'd rather use just that interface so I'm= wondering if that's even possible?</div> <div><br></div><div>I've also tried to access the DOM through WebKit bu= t that didn't work, a few posters to a question on StackExchange sugges= ted that it was related to it not knowing the MIME type of an SVG file.</di= v> <div><br></div><div>Thanks</div></div> --001a11c153f6d1143804f4616b01-- --===============7800573484458497908== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech --===============7800573484458497908== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Librsvg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/librsvg-devel --===============7800573484458497908==--