diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2016-10-01 17:14:28 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2016-10-01 17:14:28 +0930 |
commit | 4e70815b349309e0a82bc8c52663e030c24a1add (patch) | |
tree | 9eea3d41e5017fb60b6f83d913d627b81aaacbca /src/cairo-surface-backend-private.h | |
parent | b207a932a2d3740984319dffd58a0791580597cd (diff) | |
download | cairo-4e70815b349309e0a82bc8c52663e030c24a1add.tar.gz |
Add tag functions to cairo_t and cairo_surface_t
The cairo_tag_begin/cairo_tag_end API is for supporting hyperlinks and
creating tagged PDF files.
The source, ctm, and stroke style are passed to the backend to allow
these parameters to be used to specify hyperlink border attributes.
Diffstat (limited to 'src/cairo-surface-backend-private.h')
-rw-r--r-- | src/cairo-surface-backend-private.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/cairo-surface-backend-private.h b/src/cairo-surface-backend-private.h index 955a79ff5..bcda9aed1 100644 --- a/src/cairo-surface-backend-private.h +++ b/src/cairo-surface-backend-private.h @@ -200,6 +200,18 @@ struct _cairo_surface_backend { const char ** (*get_supported_mime_types) (void *surface); + + cairo_warn cairo_int_status_t + (*tag) (void *surface, + cairo_bool_t begin, + const char *tag_name, + const char *attributes, + const cairo_pattern_t *source, + const cairo_stroke_style_t *style, + const cairo_matrix_t *ctm, + const cairo_matrix_t *ctm_inverse, + const cairo_clip_t *clip); + }; cairo_private cairo_status_t |