summaryrefslogtreecommitdiff
path: root/src/cairo-analysis-surface-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2007-09-23 17:43:44 +0930
committerAdrian Johnson <ajohnson@redneon.com>2007-09-23 17:43:44 +0930
commit77f1aa78872aa108199afd41247cf21827f7e33a (patch)
treed8620620c1e274548298a7bf3c27fa84edc623b1 /src/cairo-analysis-surface-private.h
parentbeefbdd63864d10924360f41b244de7edf7b5f5b (diff)
downloadcairo-77f1aa78872aa108199afd41247cf21827f7e33a.tar.gz
Add Encapsulated PostScript support
The analysis surface will calculated the tight bounding box for each page. A new paginated-surface backend function set_bounding_box() has been added for passing the page bounding box to the target surface at the end of the analysis phase. The changes to the PS file when EPS is enabled are: - Add EPS header - Use tight bounding box instead of page size - Use save/restore to ensure PS interpreter is left in the same state
Diffstat (limited to 'src/cairo-analysis-surface-private.h')
-rw-r--r--src/cairo-analysis-surface-private.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/cairo-analysis-surface-private.h b/src/cairo-analysis-surface-private.h
index c17b0ef66..9fcfed039 100644
--- a/src/cairo-analysis-surface-private.h
+++ b/src/cairo-analysis-surface-private.h
@@ -46,12 +46,16 @@ cairo_private cairo_region_t *
_cairo_analysis_surface_get_supported (cairo_surface_t *surface);
cairo_private cairo_region_t *
-_cairo_analysis_surface_get_unsupported (cairo_surface_t *unsupported);
+_cairo_analysis_surface_get_unsupported (cairo_surface_t *surface);
cairo_private cairo_bool_t
-_cairo_analysis_surface_has_supported (cairo_surface_t *unsupported);
+_cairo_analysis_surface_has_supported (cairo_surface_t *surface);
cairo_private cairo_bool_t
-_cairo_analysis_surface_has_unsupported (cairo_surface_t *unsupported);
+_cairo_analysis_surface_has_unsupported (cairo_surface_t *surface);
+
+cairo_private void
+_cairo_analysis_surface_get_bounding_box (cairo_surface_t *surface,
+ cairo_box_t *bbox);
#endif /* CAIRO_ANALYSIS_SURFACE_H */