diff options
author | Robin Watts <robin.watts@artifex.com> | 2018-01-22 18:43:01 +0000 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-02-13 14:45:02 +0100 |
commit | 60aa2d2f7109bc8e975f949d88729f1f3e4e7ac3 (patch) | |
tree | 67ab8847fcf4d2a7ba8928227b3a561c46a5a7d8 /include | |
parent | 4e928c68b1852b860122bac28cc0f3af96c3156e (diff) | |
download | mupdf-60aa2d2f7109bc8e975f949d88729f1f3e4e7ac3.tar.xz |
Add fz_begin_layer/fz_end_layer.
Call these from the PDF interpreter. Make the DisplayList and
Trace devices cope.
Use these in the SVG output device.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/device.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h index 549ae9be..132668c1 100644 --- a/include/mupdf/fitz/device.h +++ b/include/mupdf/fitz/device.h @@ -115,6 +115,9 @@ struct fz_device_s void (*render_flags)(fz_context *, fz_device *, int set, int clear); void (*set_default_colorspaces)(fz_context *, fz_device *, fz_default_colorspaces *); + void (*begin_layer)(fz_context *, fz_device *, const char *layer_name); + void (*end_layer)(fz_context *, fz_device *); + fz_rect d1_rect; int error_depth; @@ -148,6 +151,8 @@ int fz_begin_tile_id(fz_context *ctx, fz_device *dev, const fz_rect *area, const void fz_end_tile(fz_context *ctx, fz_device *dev); void fz_render_flags(fz_context *ctx, fz_device *dev, int set, int clear); void fz_set_default_colorspaces(fz_context *ctx, fz_device *dev, fz_default_colorspaces *default_cs); +void fz_begin_layer(fz_context *ctx, fz_device *dev, const char *layer_name); +void fz_end_layer(fz_context *ctx, fz_device *dev); fz_device *fz_new_device_of_size(fz_context *ctx, int size); #define fz_new_derived_device(CTX, TYPE) \ |