comparison include/mb_graph_engine_openvg.h @ 597:3300992b29ff openvg

Define mbe_clear() for VG
author Thinker K.F. Li <thinker@branda.to>
date Thu, 01 Jul 2010 15:52:29 +0800
parents aaaaa03af04d
children aba62eb9362d
comparison
equal deleted inserted replaced
596:aaab76730beb 597:3300992b29ff
60 #define mbe_curve_to(canvas, x1, y1, x2, y2, x3, y3) 60 #define mbe_curve_to(canvas, x1, y1, x2, y2, x3, y3)
61 #define mbe_restore(canvas) 61 #define mbe_restore(canvas)
62 #define mbe_move_to(canvas, x, y) 62 #define mbe_move_to(canvas, x, y)
63 #define mbe_line_to(canvas, x, y) 63 #define mbe_line_to(canvas, x, y)
64 #define mbe_in_fill(canvas, x, y) (0) 64 #define mbe_in_fill(canvas, x, y) (0)
65 #define mbe_clear(canvas)
66 #define mbe_save(canvas) 65 #define mbe_save(canvas)
67 #define mbe_arc(canvas, x, y, radius, angle_start, angle_stop) 66 #define mbe_arc(canvas, x, y, radius, angle_start, angle_stop)
68 67
69 typedef struct _mbe_text_extents_t mbe_text_extents_t; 68 typedef struct _mbe_text_extents_t mbe_text_extents_t;
70 typedef int mbe_scaled_font_t; 69 typedef int mbe_scaled_font_t;
175 } 174 }
176 175
177 extern mbe_t *mbe_create(mbe_surface_t *surface); 176 extern mbe_t *mbe_create(mbe_surface_t *surface);
178 extern void mbe_destroy(mbe_t *canvas); 177 extern void mbe_destroy(mbe_t *canvas);
179 extern void mbe_paint(mbe_t *canvas); 178 extern void mbe_paint(mbe_t *canvas);
179 extern void mbe_clear(mbe_t *canvas);
180 180
181 static void 181 static void
182 mbe_stroke(mbe_t *canvas) { 182 mbe_stroke(mbe_t *canvas) {
183 _MK_CURRENT_CTX(canvas); 183 _MK_CURRENT_CTX(canvas);
184 _MK_CURRENT_PAINT(canvas); 184 _MK_CURRENT_PAINT(canvas);