Mercurial > MadButterfly
diff src/redraw_man.h @ 15:c2ce186a5c37
X_main uses rdman_redraw_all()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 01 Aug 2008 01:40:07 +0800 |
parents | d34232f15863 |
children | e17e12b112c4 |
line wrap: on
line diff
--- a/src/redraw_man.h Thu Jul 31 17:43:20 2008 +0800 +++ b/src/redraw_man.h Fri Aug 01 01:40:07 2008 +0800 @@ -1,6 +1,7 @@ #ifndef __REDRAW_MAN_H_ #define __REDRAW_MAN_H_ +#include <cairo.h> #include "tools.h" #include "mb_types.h" @@ -42,9 +43,11 @@ int max_dirty_areas; int n_dirty_areas; area_t **dirty_areas; + + cairo_t *cr; } redraw_man_t; -extern int redraw_man_init(redraw_man_t *rdman); +extern int redraw_man_init(redraw_man_t *rdman, cairo_t *cr); extern void redraw_man_destroy(redraw_man_t *rdman); extern int rdman_find_overlaid_shapes(redraw_man_t *rdman, geo_t *geo, @@ -54,6 +57,9 @@ extern int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape); extern coord_t *rdman_coord_new(redraw_man_t *rdman, coord_t *parent); extern int rdman_coord_free(redraw_man_t *rdman, coord_t *coord); +extern int rdman_coord_changed(redraw_man_t *rdman, coord_t *coord); +extern int rdman_redraw_changed(redraw_man_t *rdman); +extern int rdman_redraw_all(redraw_man_t *rdman); #endif /* __REDRAW_MAN_H_ */