diff options
author | Carl Worth <cworth@cworth.org> | 2005-11-04 11:16:38 +0000 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2005-11-04 11:16:38 +0000 |
commit | 39eca22bfe2af91c926d00a4c3f19c03280b6c8b (patch) | |
tree | b66adfa469dd076f52490599c0b83f953ed57afe /src/cairo-gstate-private.h | |
parent | 719334c52cd8dd8aaf10284632b018fd1a3b9d6c (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-gstate-private.h')
-rw-r--r-- | src/cairo-gstate-private.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/cairo-gstate-private.h b/src/cairo-gstate-private.h index b174115f..e96ba8dd 100644 --- a/src/cairo-gstate-private.h +++ b/src/cairo-gstate-private.h @@ -44,18 +44,10 @@ struct _cairo_gstate { double tolerance; cairo_antialias_t antialias; - /* stroke style */ - double line_width; - cairo_line_cap_t line_cap; - cairo_line_join_t line_join; - double miter_limit; + cairo_stroke_style_t stroke_style; cairo_fill_rule_t fill_rule; - double *dash; - int num_dashes; - double dash_offset; - cairo_font_face_t *font_face; cairo_scaled_font_t *scaled_font; /* Specific to the current CTM */ cairo_matrix_t font_matrix; |