summaryrefslogtreecommitdiff
path: root/src/cairo-recording-surface-private.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2016-10-01 17:26:16 +0930
committerAdrian Johnson <ajohnson@redneon.com>2016-10-01 17:26:16 +0930
commit3bd5efa1b651503ed9f175f9ea62fff53f0b2882 (patch)
tree4c10bd4c6dbf8e65100951e581127b5f15943071 /src/cairo-recording-surface-private.h
parent4e70815b349309e0a82bc8c52663e030c24a1add (diff)
downloadcairo-3bd5efa1b651503ed9f175f9ea62fff53f0b2882.tar.gz
Add tag functions to recording surface and surface-wrapper
Diffstat (limited to 'src/cairo-recording-surface-private.h')
-rw-r--r--src/cairo-recording-surface-private.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/cairo-recording-surface-private.h b/src/cairo-recording-surface-private.h
index 021b73c08..c1827f5b3 100644
--- a/src/cairo-recording-surface-private.h
+++ b/src/cairo-recording-surface-private.h
@@ -49,6 +49,9 @@ typedef enum {
CAIRO_COMMAND_STROKE,
CAIRO_COMMAND_FILL,
CAIRO_COMMAND_SHOW_TEXT_GLYPHS,
+
+ /* cairo_tag_begin()/cairo_tag_end() */
+ CAIRO_COMMAND_TAG,
} cairo_command_type_t;
typedef enum {
@@ -112,6 +115,17 @@ typedef struct _cairo_command_show_text_glyphs {
cairo_scaled_font_t *scaled_font;
} cairo_command_show_text_glyphs_t;
+typedef struct _cairo_command_tag {
+ cairo_command_header_t header;
+ cairo_bool_t begin;
+ char *tag_name;
+ char *attributes;
+ cairo_pattern_union_t source;
+ cairo_stroke_style_t style;
+ cairo_matrix_t ctm;
+ cairo_matrix_t ctm_inverse;
+} cairo_command_tag_t;
+
typedef union _cairo_command {
cairo_command_header_t header;
@@ -120,6 +134,7 @@ typedef union _cairo_command {
cairo_command_stroke_t stroke;
cairo_command_fill_t fill;
cairo_command_show_text_glyphs_t show_text_glyphs;
+ cairo_command_tag_t tag;
} cairo_command_t;
typedef struct _cairo_recording_surface {