diff include/mb_redraw_man.h @ 273:0cadeb9fdfc3

Merged
author wycc
date Mon, 26 Jan 2009 01:37:04 +0800
parents cd6af7da32c9
children 6c350fc92ae3
line wrap: on
line diff
--- a/include/mb_redraw_man.h	Mon Jan 26 01:36:04 2009 +0800
+++ b/include/mb_redraw_man.h	Mon Jan 26 01:37:04 2009 +0800
@@ -83,6 +83,9 @@
     mb_img_ldr_t *img_ldr;	/*!< \brief Image Loader.
 				 *	This is initialized by backend.
 				 */
+    co_aix w, h;		/*!< \brief Size of viewport
+				 *	This is initialized by backend.
+				 */
 };
 
 extern int redraw_man_init(redraw_man_t *rdman, cairo_t *cr,
@@ -196,6 +199,8 @@
     DARRAY_CLEAN(rdman_get_gen_geos(rdman))
 #define rdman_prop_store(rdman) ((rdman)->props)
 #define rdman_img_ldr(rdman) ((rdman)->img_ldr)
+#define rdman_set_img_ldr(rdman, ldr)		\
+    do { (rdman)->img_ldr = ldr; } while(0)
 
 /*! \brief Attach backend to the redraw manager so that we can hide the backend from the users.
  *