diff include/mb_redraw_man.h @ 448:16116d84bc5e

Replace Cairo with a abstract layer mb_graph_engine. mb_graph_engine is a layer to separate MadButterfly from Cairo. It is only a set of macro mapping to cairo implementation, now. But, it provides a oppotunities to replace cairo with other engines; likes skia.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 04 Aug 2009 23:35:41 +0800
parents 3e84458968ec
children af4b506ad56f
line wrap: on
line diff
--- a/include/mb_redraw_man.h	Sun Aug 02 11:00:37 2009 +0800
+++ b/include/mb_redraw_man.h	Tue Aug 04 23:35:41 2009 +0800
@@ -1,7 +1,7 @@
 #ifndef __REDRAW_MAN_H_
 #define __REDRAW_MAN_H_
 
-#include <cairo.h>
+#include "mb_graph_engine.h"
 #include "mb_tools.h"
 #include "mb_types.h"
 #include "mb_observer.h"
@@ -65,8 +65,8 @@
 
     free_objs_t free_objs;
 
-    cairo_t *cr;
-    cairo_t *backend;
+    mbe_t *cr;
+    mbe_t *backend;
 
     ob_factory_t ob_factory;
 
@@ -89,8 +89,8 @@
 				 */
 };
 
-extern int redraw_man_init(redraw_man_t *rdman, cairo_t *cr,
-			   cairo_t *backend);
+extern int redraw_man_init(redraw_man_t *rdman, mbe_t *cr,
+			   mbe_t *backend);
 extern void redraw_man_destroy(redraw_man_t *rdman);
 extern int rdman_find_overlaid_shapes(redraw_man_t *rdman,
 				      geo_t *geo,