summaryrefslogtreecommitdiff
path: root/src/cairo-pdf.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-pdf.h
parent9bf26e8e73e0bafd7361ae38d485c9b9b17794b1 (diff)
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-pdf.h')
-rw-r--r--src/cairo-pdf.h17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/cairo-pdf.h b/src/cairo-pdf.h
index 050e4aa70..61bf7a841 100644
--- a/src/cairo-pdf.h
+++ b/src/cairo-pdf.h
@@ -44,19 +44,18 @@
CAIRO_BEGIN_DECLS
cairo_surface_t *
-cairo_pdf_surface_create (const char *filename,
- double width,
- double height);
+cairo_pdf_surface_create (const char *filename,
+ double width_in_points,
+ double height_in_points);
cairo_surface_t *
-cairo_pdf_surface_create_for_stream (cairo_write_func_t write_func,
- cairo_destroy_func_t destroy_closure_func,
- void *closure,
- double width,
- double height);
+cairo_pdf_surface_create_for_stream (cairo_write_func_t write_func,
+ void *closure,
+ double width_in_points,
+ double height_in_points);
void
-cairo_pdf_surface_set_dpi (cairo_surface_t *surface,
+cairo_pdf_surface_set_dpi (cairo_surface_t *surface,
double x_dpi,
double y_dpi);