summaryrefslogtreecommitdiff
path: root/src/cairo-ps.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-05-17 05:58:01 +0000
committerCarl Worth <cworth@cworth.org>2005-05-17 05:58:01 +0000
commit84bc5a32d6b3ad366698c14a01f7a4898f1cd25c (patch)
tree57c82dad0f156994cbdd103341184c36d9b79434 /src/cairo-ps.h
parent9bf26e8e73e0bafd7361ae38d485c9b9b17794b1 (diff)
downloadcairo-84bc5a32d6b3ad366698c14a01f7a4898f1cd25c.tar.gz
Remove destroy_closure from cairo_output_stream_t interface.
Remove destroy_closure argument from cairo_pdf_surface_create_for_stream. Rename width,height to width_in_points, height_in_points for better clarity. Brush a bunch of dust off of the PS backend and bring it up to date with the latest API conventions from the PDF backend. These include: accepting a filename rather than a FILE in the primary constructor, providing a stream-based interface for more flexibility, and accepting a surface size in device-space units (points) rather than inches. Make it a little more clear that the width and height being passed around are in units of points. Update to the latest cairo-ps.h changes as described above. Notice how much more sane things become now that the surface size is described in device-space units.
Diffstat (limited to 'src/cairo-ps.h')
-rw-r--r--src/cairo-ps.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/cairo-ps.h b/src/cairo-ps.h
index eca59e597..ea2d53d09 100644
--- a/src/cairo-ps.h
+++ b/src/cairo-ps.h
@@ -48,11 +48,20 @@ CAIRO_BEGIN_DECLS
/* PS-surface functions */
cairo_surface_t *
-cairo_ps_surface_create (FILE *file,
- double width_inches,
- double height_inches,
- double x_pixels_per_inch,
- double y_pixels_per_inch);
+cairo_ps_surface_create (const char *filename,
+ double width_in_points,
+ double height_in_points);
+
+cairo_surface_t *
+cairo_ps_surface_create_for_stream (cairo_write_func_t write_func,
+ void *closure,
+ double width_in_points,
+ double height_in_points);
+
+void
+cairo_ps_surface_set_dpi (cairo_surface_t *surface,
+ double x_dpi,
+ double y_dpi);
CAIRO_END_DECLS