summaryrefslogtreecommitdiff
path: root/test/mesh-pattern.c
diff options
context:
space:
mode:
authorAndrea Canciani <ranma42@gmail.com>2011-02-03 22:55:53 +0100
committerAndrea Canciani <ranma42@gmail.com>2011-02-07 20:28:09 +0100
commit5f039f0f894082c383884595220f6f0368ab72cf (patch)
tree4a77d3ac440d12e7138366d531ca7b1d85a9a6bd /test/mesh-pattern.c
parentfda784793edc3da789954df7fc2f0c86d9ed4f94 (diff)
mesh: Rename cairo_pattern_mesh_* functions to cairo_mesh_pattern_*
This is consistent with the naming of most cairo types/functions (example: cairo_foo_surface_*). The substitution in the code has been performed using: sed -i 's/cairo_pattern_mesh_/cairo_mesh_pattern_/' <files>
Diffstat (limited to 'test/mesh-pattern.c')
-rw-r--r--test/mesh-pattern.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/test/mesh-pattern.c b/test/mesh-pattern.c
index bcd49be2..68f18304 100644
--- a/test/mesh-pattern.c
+++ b/test/mesh-pattern.c
@@ -49,35 +49,35 @@ draw (cairo_t *cr, int width, int height)
pattern = cairo_pattern_create_mesh ();
- cairo_pattern_mesh_begin_patch (pattern);
+ cairo_mesh_pattern_begin_patch (pattern);
- cairo_pattern_mesh_move_to (pattern, 0, 0);
- cairo_pattern_mesh_curve_to (pattern, 30, -30, 60, 30, 100, 0);
- cairo_pattern_mesh_curve_to (pattern, 60, 30, 130, 60, 100, 100);
- cairo_pattern_mesh_curve_to (pattern, 60, 70, 30, 130, 0, 100);
- cairo_pattern_mesh_curve_to (pattern, 30, 70, -30, 30, 0, 0);
+ cairo_mesh_pattern_move_to (pattern, 0, 0);
+ cairo_mesh_pattern_curve_to (pattern, 30, -30, 60, 30, 100, 0);
+ cairo_mesh_pattern_curve_to (pattern, 60, 30, 130, 60, 100, 100);
+ cairo_mesh_pattern_curve_to (pattern, 60, 70, 30, 130, 0, 100);
+ cairo_mesh_pattern_curve_to (pattern, 30, 70, -30, 30, 0, 0);
- cairo_pattern_mesh_set_corner_color_rgb (pattern, 0, 1, 0, 0);
- cairo_pattern_mesh_set_corner_color_rgb (pattern, 1, 0, 1, 0);
- cairo_pattern_mesh_set_corner_color_rgb (pattern, 2, 0, 0, 1);
- cairo_pattern_mesh_set_corner_color_rgb (pattern, 3, 1, 1, 0);
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 1, 0, 0);
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 1, 0);
- cairo_pattern_mesh_end_patch (pattern);
+ cairo_mesh_pattern_end_patch (pattern);
- cairo_pattern_mesh_begin_patch (pattern);
+ cairo_mesh_pattern_begin_patch (pattern);
- cairo_pattern_mesh_move_to (pattern, 50, 50);
- cairo_pattern_mesh_curve_to (pattern, 80, 20, 110, 80, 150, 50);
- cairo_pattern_mesh_curve_to (pattern, 110, 80, 180, 110, 150, 150);
- cairo_pattern_mesh_curve_to (pattern, 110, 120, 80, 180, 50, 150);
- cairo_pattern_mesh_curve_to (pattern, 80, 120, 20, 80, 50, 50);
+ cairo_mesh_pattern_move_to (pattern, 50, 50);
+ cairo_mesh_pattern_curve_to (pattern, 80, 20, 110, 80, 150, 50);
+ cairo_mesh_pattern_curve_to (pattern, 110, 80, 180, 110, 150, 150);
+ cairo_mesh_pattern_curve_to (pattern, 110, 120, 80, 180, 50, 150);
+ cairo_mesh_pattern_curve_to (pattern, 80, 120, 20, 80, 50, 50);
- cairo_pattern_mesh_set_corner_color_rgba (pattern, 0, 1, 0, 0, 0.3);
- cairo_pattern_mesh_set_corner_color_rgb (pattern, 1, 0, 1, 0);
- cairo_pattern_mesh_set_corner_color_rgba (pattern, 2, 0, 0, 1, 0.3);
- cairo_pattern_mesh_set_corner_color_rgb (pattern, 3, 1, 1, 0);
+ cairo_mesh_pattern_set_corner_color_rgba (pattern, 0, 1, 0, 0, 0.3);
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
+ cairo_mesh_pattern_set_corner_color_rgba (pattern, 2, 0, 0, 1, 0.3);
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 1, 0);
- cairo_pattern_mesh_end_patch (pattern);
+ cairo_mesh_pattern_end_patch (pattern);
cairo_set_source (cr, pattern);
cairo_paint (cr);