Mercurial > MadButterfly
comparison include/mb_graph_engine_cairo.h @ 1073:d09f603438d8 openvg
Merge the work of improvement for graphic engine of openvg branch
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 01 Dec 2010 20:01:49 +0800 |
parents | 1a75a4778515 |
children | e1a76d10953e |
comparison
equal
deleted
inserted
replaced
1072:cf82361fe5b9 | 1073:d09f603438d8 |
---|---|
24 #define mbe_image_surface_get_height cairo_image_surface_get_height | 24 #define mbe_image_surface_get_height cairo_image_surface_get_height |
25 #define mbe_directfb_surface_create cairo_directfb_surface_create | 25 #define mbe_directfb_surface_create cairo_directfb_surface_create |
26 #define mbe_image_surface_get_width cairo_image_surface_get_width | 26 #define mbe_image_surface_get_width cairo_image_surface_get_width |
27 #define mbe_image_surface_get_data cairo_image_surface_get_data | 27 #define mbe_image_surface_get_data cairo_image_surface_get_data |
28 #define mbe_scaled_font_reference cairo_scaled_font_reference | 28 #define mbe_scaled_font_reference cairo_scaled_font_reference |
29 #define mbe_xlib_surface_create cairo_xlib_surface_create | 29 #define mbe_win_surface_create cairo_xlib_surface_create |
30 #define mbe_scaled_font_destroy cairo_scaled_font_destroy | 30 #define mbe_scaled_font_destroy cairo_scaled_font_destroy |
31 #define mbe_font_face_reference cairo_font_face_reference | 31 #define mbe_font_face_reference cairo_font_face_reference |
32 #define mbe_font_face_destroy cairo_font_face_destroy | 32 #define mbe_font_face_destroy cairo_font_face_destroy |
33 #define mbe_paint_with_alpha cairo_paint_with_alpha | 33 #define mbe_paint_with_alpha cairo_paint_with_alpha |
34 #define mbe_surface_destroy cairo_surface_destroy | 34 #define mbe_surface_destroy cairo_surface_destroy |
39 #define mbe_set_source_rgb cairo_set_source_rgb | 39 #define mbe_set_source_rgb cairo_set_source_rgb |
40 #define mbe_set_line_width cairo_set_line_width | 40 #define mbe_set_line_width cairo_set_line_width |
41 #define mbe_get_font_face cairo_get_font_face | 41 #define mbe_get_font_face cairo_get_font_face |
42 #define mbe_fill_preserve cairo_fill_preserve | 42 #define mbe_fill_preserve cairo_fill_preserve |
43 #define mbe_set_source cairo_set_source | 43 #define mbe_set_source cairo_set_source |
44 #define mbe_reset_clip cairo_reset_clip | 44 #define mbe_reset_scissoring cairo_reset_clip |
45 #define mbe_get_target cairo_get_target | 45 #define mbe_get_target cairo_get_target |
46 #define mbe_close_path cairo_close_path | 46 #define mbe_close_path cairo_close_path |
47 #define mbe_text_path cairo_text_path | 47 #define mbe_text_path cairo_text_path |
48 #define mbe_rectangle cairo_rectangle | 48 #define mbe_rectangle cairo_rectangle |
49 #define mbe_in_stroke cairo_in_stroke | 49 #define mbe_in_stroke cairo_in_stroke |
57 #define mbe_stroke cairo_stroke | 57 #define mbe_stroke cairo_stroke |
58 #define mbe_create cairo_create | 58 #define mbe_create cairo_create |
59 #define mbe_paint cairo_paint | 59 #define mbe_paint cairo_paint |
60 #define mbe_save cairo_save | 60 #define mbe_save cairo_save |
61 #define mbe_fill cairo_fill | 61 #define mbe_fill cairo_fill |
62 #define mbe_clip cairo_clip | 62 #define mbe_init() |
63 | 63 |
64 typedef cairo_text_extents_t mbe_text_extents_t; | 64 typedef cairo_text_extents_t mbe_text_extents_t; |
65 typedef cairo_scaled_font_t mbe_scaled_font_t; | 65 typedef cairo_scaled_font_t mbe_scaled_font_t; |
66 typedef cairo_font_face_t mbe_font_face_t; | 66 typedef cairo_font_face_t mbe_font_face_t; |
67 typedef cairo_surface_t mbe_surface_t; | 67 typedef cairo_surface_t mbe_surface_t; |
89 int stop_cnt); | 89 int stop_cnt); |
90 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, | 90 extern mbe_pattern_t *mbe_pattern_create_linear(co_aix x0, co_aix y0, |
91 co_aix x1, co_aix y1, | 91 co_aix x1, co_aix y1, |
92 grad_stop_t *stops, | 92 grad_stop_t *stops, |
93 int stop_cnt); | 93 int stop_cnt); |
94 extern mbe_pattern_t *mbe_pattern_create_image(mb_img_data_t *img); | |
95 extern void mbe_scissoring(mbe_t *canvas, int n_areas, area_t **areas); | |
94 | 96 |
95 | 97 |
96 static void mbe_pattern_set_matrix(mbe_pattern_t *ptn, | 98 static void mbe_pattern_set_matrix(mbe_pattern_t *ptn, |
97 const co_aix matrix[6]) { | 99 const co_aix matrix[6]) { |
98 cairo_matrix_t cmtx; | 100 cairo_matrix_t cmtx; |