summaryrefslogtreecommitdiff
path: root/src/cairo-meta-surface-private.h
diff options
context:
space:
mode:
authorCarl Worth <cworth@cworth.org>2005-11-04 11:16:38 +0000
committerCarl Worth <cworth@cworth.org>2005-11-04 11:16:38 +0000
commit39eca22bfe2af91c926d00a4c3f19c03280b6c8b (patch)
treeb66adfa469dd076f52490599c0b83f953ed57afe /src/cairo-meta-surface-private.h
parent719334c52cd8dd8aaf10284632b018fd1a3b9d6c (diff)
Rework support in the surface backend for the five basic drawing operations (paint, mask, stroke, fill, and show_glyphs). Now, all 5 operations have backend functions, and all use a consistent convention for argument naming and ordering. The old fill_path has been replaced with a new fill. The old show_glyphs function was recently renamed to old_show_glyphs and has not yet been ported to the new show_glyphs, (so all backends have a NULL show_glyphs function). In fact, of the 5 new backend functions, fill is the only one that has an implementation in any backend. As part of this cleanup a new cairo_stroke_style_t object is introduced to capture the many settings unique to the stroke operation, (line_width, line_cap, line_join, miter_limit, dash, num_dashes, and dash_offset).
Track changes in surface backend from fill_path to fill. Track the new canonical argument naming and ordering for the 5 drawing operations. Move various stroke style settings into new cairo_stroke_style_t. Drop NULL fill_path backend function which no longer exists.
Diffstat (limited to 'src/cairo-meta-surface-private.h')
-rw-r--r--src/cairo-meta-surface-private.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cairo-meta-surface-private.h b/src/cairo-meta-surface-private.h
index 975d596c4..344312e61 100644
--- a/src/cairo-meta-surface-private.h
+++ b/src/cairo-meta-surface-private.h
@@ -46,7 +46,7 @@ typedef enum {
CAIRO_COMMAND_SET_CLIP_REGION,
CAIRO_COMMAND_INTERSECT_CLIP_PATH,
CAIRO_COMMAND_SHOW_GLYPHS,
- CAIRO_COMMAND_FILL_PATH
+ CAIRO_COMMAND_FILL
} cairo_command_type_t;
typedef struct _cairo_command_composite {
@@ -118,7 +118,7 @@ typedef struct _cairo_command_show_glyphs {
int num_glyphs;
} cairo_command_show_glyphs_t;
-typedef struct _cairo_command_fill_path {
+typedef struct _cairo_command_fill {
cairo_command_type_t type;
cairo_operator_t operator;
cairo_pattern_union_t pattern;
@@ -126,7 +126,7 @@ typedef struct _cairo_command_fill_path {
cairo_fill_rule_t fill_rule;
double tolerance;
cairo_antialias_t antialias;
-} cairo_command_fill_path_t;
+} cairo_command_fill_t;
typedef union _cairo_command {
cairo_command_type_t type;
@@ -136,7 +136,7 @@ typedef union _cairo_command {
cairo_command_set_clip_region_t set_clip_region;
cairo_command_intersect_clip_path_t intersect_clip_path;
cairo_command_show_glyphs_t show_glyphs;
- cairo_command_fill_path_t fill_path;
+ cairo_command_fill_t fill;
} cairo_command_t;
typedef struct _cairo_meta_surface {