summaryrefslogtreecommitdiff
path: root/src/cairo-pdf.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2005-05-13 09:26:20 +0000
committerKristian Høgsberg <krh@redhat.com>2005-05-13 09:26:20 +0000
commitb9db66eb17754da628894a4e43943f3fbef88406 (patch)
tree3d86f2f85e15e20c8a2dc033e07a471ef4534caa /src/cairo-pdf.h
parent9ebf15e9600c5a5c741cd1540478bb18f236b55d (diff)
downloadcairo-b9db66eb17754da628894a4e43943f3fbef88406.tar.gz
Rename cairo_pdf_surface_create_for_callback() to cairo_pdf_surface_create_for_stream(), and change PDF constructors to take width and height as points and move PPI setting to cairo_pdf_surface_set_ppi()
Diffstat (limited to 'src/cairo-pdf.h')
-rw-r--r--src/cairo-pdf.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/cairo-pdf.h b/src/cairo-pdf.h
index 8c31636ba..cb2aa6fe1 100644
--- a/src/cairo-pdf.h
+++ b/src/cairo-pdf.h
@@ -47,19 +47,20 @@ CAIRO_BEGIN_DECLS
cairo_surface_t *
cairo_pdf_surface_create (FILE *fp,
- double width_inches,
- double height_inches,
- double x_pixels_per_inch,
- double y_pixels_per_inch);
+ double width,
+ double height);
cairo_surface_t *
-cairo_pdf_surface_create_for_callback (cairo_write_func_t write_func,
- cairo_destroy_func_t destroy_closure_func,
- void *closure,
- double width_inches,
- double height_inches,
- double x_pixels_per_inch,
- double y_pixels_per_inch);
+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);
+
+void
+cairo_pdf_surface_set_ppi (cairo_surface_t *surface,
+ double x_ppi,
+ double y_ppi);
CAIRO_END_DECLS