diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2016-10-01 22:46:49 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2016-10-01 22:46:49 +0930 |
commit | 2d6a0f5d16d61c8f4236760c71061a0c4c3a199c (patch) | |
tree | 4b98a5cde00839c8b8c2b3f5578a21566270630e /src/cairo-paginated-private.h | |
parent | 26b3f83ff652a284b79557ec1555b398c566a7eb (diff) | |
download | cairo-2d6a0f5d16d61c8f4236760c71061a0c4c3a199c.tar.gz |
pdf: thumbnail API
Diffstat (limited to 'src/cairo-paginated-private.h')
-rw-r--r-- | src/cairo-paginated-private.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/cairo-paginated-private.h b/src/cairo-paginated-private.h index 29eefc76a..b85a5db6b 100644 --- a/src/cairo-paginated-private.h +++ b/src/cairo-paginated-private.h @@ -77,7 +77,23 @@ struct _cairo_paginated_surface_backend { cairo_bool_t fallbacks_required); cairo_bool_t - (*supports_fine_grained_fallbacks) (void *surface); + (*supports_fine_grained_fallbacks) (void *surface); + + /* Optional. Indicates whether the page requires a thumbnail image to be + * supplied. If a thumbnail is required, set width, heigh to size required + * and return TRUE. + */ + cairo_bool_t + (*requires_thumbnail_image) (void *surface, + int *width, + int *height); + + /* If thumbbail image requested, this function will be called before + * _show_page(). + */ + cairo_warn cairo_int_status_t + (*set_thumbnail_image) (void *surface, + cairo_image_surface_t *image); }; /* A #cairo_paginated_surface_t provides a very convenient wrapper that |