summaryrefslogtreecommitdiff
path: root/src/cairo-svg.h
diff options
context:
space:
mode:
authorEmmanuel Pacaud <emmanuel.pacaud@free.fr>2006-05-02 14:50:40 +0200
committerEmmanuel Pacaud <emmanuel.pacaud@free.fr>2006-05-02 14:50:40 +0200
commit0e4527c67e623801544be05de32f21a0c10e5b5d (patch)
treeeb5c626cf09081b8dfb8ae7655f9babd7e90aa57 /src/cairo-svg.h
parent32f120e4888fd9344f699fd47c1aea6a5ec3df8e (diff)
SVG: Rework of API for SVG selection.
I've removed cairo_svg_surface_create_xxx functions, and instead implemented the following ones: cairo_svg_surface_restrict_to_version cairo_svg_get_versions cairo_svg_version_to_string
Diffstat (limited to 'src/cairo-svg.h')
-rw-r--r--src/cairo-svg.h41
1 files changed, 20 insertions, 21 deletions
diff --git a/src/cairo-svg.h b/src/cairo-svg.h
index d428fe350..cac6c0ee9 100644
--- a/src/cairo-svg.h
+++ b/src/cairo-svg.h
@@ -38,40 +38,39 @@
CAIRO_BEGIN_DECLS
-cairo_surface_t *
+typedef enum {
+ CAIRO_SVG_VERSION_1_1,
+ CAIRO_SVG_VERSION_1_2,
+ CAIRO_SVG_VERSION_LAST
+} cairo_svg_version_t;
+
+cairo_public cairo_surface_t *
cairo_svg_surface_create (const char *filename,
double width_in_points,
double height_in_points);
-cairo_surface_t *
-cairo_svg_surface_create_1_1 (const char *filename,
- double width_in_points,
- double height_in_points);
-cairo_surface_t *
-cairo_svg_surface_create_1_2 (const char *filename,
- double width_in_points,
- double height_in_points);
-cairo_surface_t *
+cairo_public cairo_surface_t *
cairo_svg_surface_create_for_stream (cairo_write_func_t write_func,
void *closure,
double width_in_points,
double height_in_points);
-cairo_surface_t *
-cairo_svg_surface_create_for_stream_1_1 (cairo_write_func_t write_func,
- void *closure,
- double width_in_points,
- double height_in_points);
-cairo_surface_t *
-cairo_svg_surface_create_for_stream_1_2 (cairo_write_func_t write_func,
- void *closure,
- double width_in_points,
- double height_in_points);
-void
+cairo_public void
cairo_svg_surface_set_dpi (cairo_surface_t *surface,
double x_dpi,
double y_dpi);
+cairo_public void
+cairo_svg_surface_restrict_to_version (cairo_surface_t *surface,
+ cairo_svg_version_t version);
+
+cairo_public void
+cairo_svg_get_versions (cairo_svg_version_t const **versions,
+ int *num_versions);
+
+cairo_public const char *
+cairo_svg_version_to_string (cairo_svg_version_t version);
+
CAIRO_END_DECLS
#else /* CAIRO_HAS_SVG_SURFACE */