Mercurial > MadButterfly
comparison include/mb_graph_engine_openvg.h @ 600:20b396c09c23 openvg
Integrate pattern source with paint model of canvas
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 01 Jul 2010 16:39:59 +0800 |
parents | 28aa5e53abaa |
children | ac2e6468a22a |
comparison
equal
deleted
inserted
replaced
599:28aa5e53abaa | 600:20b396c09c23 |
---|---|
37 #define mbe_pattern_destroy(pattern) | 37 #define mbe_pattern_destroy(pattern) |
38 #define mbe_get_scaled_font(canvas) ((mbe_scaled_font_t *)NULL) | 38 #define mbe_get_scaled_font(canvas) ((mbe_scaled_font_t *)NULL) |
39 #define mbe_query_font_face(family, slant, weight) ((mbe_font_face_t *)NULL) | 39 #define mbe_query_font_face(family, slant, weight) ((mbe_font_face_t *)NULL) |
40 #define mbe_free_font_face(face) | 40 #define mbe_free_font_face(face) |
41 #define mbe_set_line_width(canvas, w) | 41 #define mbe_set_line_width(canvas, w) |
42 #define mbe_set_source_rgb(canvas, r, g, b) | 42 #define mbe_set_source_rgb(canvas, r, g, b) \ |
43 mbe_set_source_rgba(canvas, r, g, b, 1) | |
43 #define mbe_get_font_face(canvas) ((mbe_font_face_t *)NULL) | 44 #define mbe_get_font_face(canvas) ((mbe_font_face_t *)NULL) |
44 #define mbe_fill_preserve(canvas) | 45 #define mbe_fill_preserve(canvas) |
45 #define mbe_copy_source(src_canvas, dst_canvas) | 46 #define mbe_copy_source(src_canvas, dst_canvas) |
46 #define mbe_set_source(canvas, pattern) \ | 47 #define mbe_set_source(canvas, pattern) \ |
47 do { (canvas)->src = (pattern); } while(0) | 48 do { \ |
49 (canvas)->src = (pattern); \ | |
50 (canvas)->paint = (pattern)->paint; \ | |
51 (canvas)->paint_installed = 0; \ | |
52 } while(0) | |
48 #define mbe_reset_scissoring(canvas) | 53 #define mbe_reset_scissoring(canvas) |
49 #define mbe_get_target(canvas) ((mbe_surface_t *)(canvas)->tgt) | 54 #define mbe_get_target(canvas) ((mbe_surface_t *)(canvas)->tgt) |
50 #define mbe_close_path(canvas) | 55 #define mbe_close_path(canvas) |
51 #define mbe_text_path(canvas, utf8) | 56 #define mbe_text_path(canvas, utf8) |
52 #define mbe_rectangle(canvas, x, y, w, h) | 57 #define mbe_rectangle(canvas, x, y, w, h) |