diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:02:18 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-02-24 13:04:03 +0100 |
commit | a9043b470ba26fc5ec06e1d44ae8e9480d75724a (patch) | |
tree | ab0f875e720b3f9d74253d58eed5614ac5301756 /include | |
parent | 35181e818efdc219a8fccf8479a73fa2b5db640f (diff) | |
download | mupdf-a9043b470ba26fc5ec06e1d44ae8e9480d75724a.tar.xz |
Add optional scissor hint argument to text clipping functions.
Diffstat (limited to 'include')
-rw-r--r-- | include/mupdf/fitz/device.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mupdf/fitz/device.h b/include/mupdf/fitz/device.h index d1f655ae..0e6b55f1 100644 --- a/include/mupdf/fitz/device.h +++ b/include/mupdf/fitz/device.h @@ -113,8 +113,8 @@ struct fz_device_s void (*fill_text)(fz_context *, fz_device *, const fz_text *, const fz_matrix *, fz_colorspace *, const float *color, float alpha); void (*stroke_text)(fz_context *, fz_device *, const fz_text *, const fz_stroke_state *, const fz_matrix *, fz_colorspace *, const float *color, float alpha); - void (*clip_text)(fz_context *, fz_device *, const fz_text *, const fz_matrix *); - void (*clip_stroke_text)(fz_context *, fz_device *, const fz_text *, const fz_stroke_state *, const fz_matrix *); + void (*clip_text)(fz_context *, fz_device *, const fz_text *, const fz_matrix *, const fz_rect *scissor); + void (*clip_stroke_text)(fz_context *, fz_device *, const fz_text *, const fz_stroke_state *, const fz_matrix *, const fz_rect *scissor); void (*ignore_text)(fz_context *, fz_device *, const fz_text *, const fz_matrix *); void (*fill_shade)(fz_context *, fz_device *, fz_shade *shd, const fz_matrix *ctm, float alpha); @@ -152,8 +152,8 @@ void fz_clip_path(fz_context *ctx, fz_device *dev, const fz_path *path, int even void fz_clip_stroke_path(fz_context *ctx, fz_device *dev, const fz_path *path, const fz_stroke_state *stroke, const fz_matrix *ctm, const fz_rect *scissor); void fz_fill_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm, fz_colorspace *colorspace, const float *color, float alpha); void fz_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm, fz_colorspace *colorspace, const float *color, float alpha); -void fz_clip_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm); -void fz_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm); +void fz_clip_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm, const fz_rect *scissor); +void fz_clip_stroke_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_stroke_state *stroke, const fz_matrix *ctm, const fz_rect *scissor); void fz_ignore_text(fz_context *ctx, fz_device *dev, const fz_text *text, const fz_matrix *ctm); void fz_pop_clip(fz_context *ctx, fz_device *dev); void fz_fill_shade(fz_context *ctx, fz_device *dev, fz_shade *shade, const fz_matrix *ctm, float alpha); |