comparison include/mb_graph_engine_skia.h @ 473:ba64f928542b Android_Skia

Remove mbe_matrix_t type. The struct mbe_matrix_t is defined in a layout accoriding definition of Cairo. It is not feasible for all graphic engine. Now, we start supporting of other graphic engine; Skia, so use type of (co_aix[6]) defined and used by MadButterfly intead of mbe_matrix_t. And, bridges of graphic engines are responsible for translate matrics into the matrix type of the graphic enigne.
author Thinker K.F. Li <thinker@branda.to>
date Thu, 12 Nov 2009 21:32:58 +0800
parents 4254eaa699d0
children b27a3460c7bd
comparison
equal deleted inserted replaced
472:4254eaa699d0 473:ba64f928542b
30 typedef struct _mbe_text_extents_t mbe_text_extents_t; 30 typedef struct _mbe_text_extents_t mbe_text_extents_t;
31 typedef struct _mbe_scaled_font_t mbe_scaled_font_t; 31 typedef struct _mbe_scaled_font_t mbe_scaled_font_t;
32 typedef struct _mbe_font_face_t mbe_font_face_t; 32 typedef struct _mbe_font_face_t mbe_font_face_t;
33 typedef struct _mbe_surface_t mbe_surface_t; 33 typedef struct _mbe_surface_t mbe_surface_t;
34 typedef struct _mbe_pattern_t mbe_pattern_t; 34 typedef struct _mbe_pattern_t mbe_pattern_t;
35 typedef struct {
36 co_aix xx; co_aix yx;
37 co_aix xy; co_aix yy;
38 co_aix x0; co_aix y0;
39 } mbe_matrix_t;
40 typedef struct _mbe_t mbe_t; 35 typedef struct _mbe_t mbe_t;
41 36
42 extern void mbe_pattern_add_color_stop_rgba(mbe_pattern_t *ptn, 37 extern void mbe_pattern_add_color_stop_rgba(mbe_pattern_t *ptn,
43 co_aix offset, 38 co_aix offset,
44 co_aix r, co_aix g, co_aix b, 39 co_aix r, co_aix g, co_aix b,
61 extern void mbe_scaled_font_destroy(mbe_scaled_font_t *scaled); 56 extern void mbe_scaled_font_destroy(mbe_scaled_font_t *scaled);
62 extern mbe_font_face_t *mbe_font_face_reference(mbe_font_face_t *face); 57 extern mbe_font_face_t *mbe_font_face_reference(mbe_font_face_t *face);
63 extern void mbe_set_source_surface(mbe_t *canvas, mbe_surface_t *surface, 58 extern void mbe_set_source_surface(mbe_t *canvas, mbe_surface_t *surface,
64 co_aix x, co_aix y); 59 co_aix x, co_aix y);
65 extern mbe_scaled_font_t * 60 extern mbe_scaled_font_t *
66 mbe_scaled_font_create(mbe_font_face_t *face, mbe_matrix_t *fnt_mtx, 61 mbe_scaled_font_create(mbe_font_face_t *face, co_aix fnt_mtx[6],
67 mbe_matrix_t *ctm); 62 co_aix ctm[6]);
68 extern void mbe_pattern_set_matrix(mbe_pattern_t *ptn, 63 extern void mbe_pattern_set_matrix(mbe_pattern_t *ptn,
69 const mbe_matrix_t *matrix); 64 const co_aix matrix[6]);
70 extern void mbe_font_face_destroy(mbe_font_face_t *face); 65 extern void mbe_font_face_destroy(mbe_font_face_t *face);
71 extern void mbe_paint_with_alpha(mbe_t *canvas, co_aix alpha); 66 extern void mbe_paint_with_alpha(mbe_t *canvas, co_aix alpha);
72 extern void mbe_surface_destroy(mbe_surface_t *surface); 67 extern void mbe_surface_destroy(mbe_surface_t *surface);
73 extern void mbe_set_source_rgba(mbe_t *canvas, 68 extern void mbe_set_source_rgba(mbe_t *canvas,
74 co_aix r, co_aix g, co_aix b, co_aix a); 69 co_aix r, co_aix g, co_aix b, co_aix a);
114 int width, int height, 109 int width, int height,
115 int stride); 110 int stride);
116 extern mb_img_fmt_t mbe_image_surface_get_format(mbe_surface_t *surface); 111 extern mb_img_fmt_t mbe_image_surface_get_format(mbe_surface_t *surface);
117 extern mbe_surface_t * 112 extern mbe_surface_t *
118 mbe_image_surface_create(mb_img_fmt_t fmt, int width, int height); 113 mbe_image_surface_create(mb_img_fmt_t fmt, int width, int height);
119 extern void mbe_transform(mbe_t *mbe, mbe_matrix_t *matrix); 114 extern void mbe_transform(mbe_t *mbe, co_aix matrix[6]);
120 extern void mbe_arc(mbe_t *mbe, co_aix x, co_aix y, co_aix radius, 115 extern void mbe_arc(mbe_t *mbe, co_aix x, co_aix y, co_aix radius,
121 co_aix angle_start, co_aix angle_stop); 116 co_aix angle_start, co_aix angle_stop);
122 /* @} */ 117 /* @} */
123 118
124 #endif /* __MB_GE_SKIA_H_ */ 119 #endif /* __MB_GE_SKIA_H_ */