[cairo] Inline SVG images and the need to prefix identifiers
Uli Schlachter
psychon at znc.in
Fri Oct 23 10:59:57 PDT 2015
Am 23.10.2015 um 15:15 schrieb Christian von Schultz:
> /**
> + * cairo_svg_surface_set_id_attribute_prefix:
> + * @surface: a SVG #cairo_surface_t
> + * @prefix: a char*
> + *
> + * Inserts @prefix in every id attribute of the generated SVG file.
> + * This is useful if several SVG files will be merged in a single
> + * XML document (e.g. XHTML with inline SVG): You can prevent otherwise
> + * inevitable id clashes by giving the different SVG files different
> + * @prefix values.
This needs a "Since: 1.16".
> + **/
> +cairo_status_t
> +cairo_svg_surface_set_id_attribute_prefix (cairo_surface_t *abstract_surface,
> + const char *prefix)
> +{
> + cairo_svg_surface_t *surface = NULL; /* hide compiler warning */
Cheers,
Uli
--
"Do you know that books smell like nutmeg or some spice from a foreign land?"
-- Faber in Fahrenheit 451
More information about the cairo
mailing list