comparison 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
comparison
equal deleted inserted replaced
14:d34232f15863 15:c2ce186a5c37
1 #ifndef __REDRAW_MAN_H_ 1 #ifndef __REDRAW_MAN_H_
2 #define __REDRAW_MAN_H_ 2 #define __REDRAW_MAN_H_
3 3
4 #include <cairo.h>
4 #include "tools.h" 5 #include "tools.h"
5 #include "mb_types.h" 6 #include "mb_types.h"
6 7
7 /*! \brief Manage redrawing of shapes (graphic elements). 8 /*! \brief Manage redrawing of shapes (graphic elements).
8 * 9 *
40 geo_t **dirty_geos; 41 geo_t **dirty_geos;
41 42
42 int max_dirty_areas; 43 int max_dirty_areas;
43 int n_dirty_areas; 44 int n_dirty_areas;
44 area_t **dirty_areas; 45 area_t **dirty_areas;
46
47 cairo_t *cr;
45 } redraw_man_t; 48 } redraw_man_t;
46 49
47 extern int redraw_man_init(redraw_man_t *rdman); 50 extern int redraw_man_init(redraw_man_t *rdman, cairo_t *cr);
48 extern void redraw_man_destroy(redraw_man_t *rdman); 51 extern void redraw_man_destroy(redraw_man_t *rdman);
49 extern int rdman_find_overlaid_shapes(redraw_man_t *rdman, 52 extern int rdman_find_overlaid_shapes(redraw_man_t *rdman,
50 geo_t *geo, 53 geo_t *geo,
51 geo_t ***overlays); 54 geo_t ***overlays);
52 extern int rdman_add_shape(redraw_man_t *rdman, 55 extern int rdman_add_shape(redraw_man_t *rdman,
53 shape_t *shape, coord_t *coord); 56 shape_t *shape, coord_t *coord);
54 extern int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape); 57 extern int rdman_remove_shape(redraw_man_t *rdman, shape_t *shape);
55 extern coord_t *rdman_coord_new(redraw_man_t *rdman, coord_t *parent); 58 extern coord_t *rdman_coord_new(redraw_man_t *rdman, coord_t *parent);
56 extern int rdman_coord_free(redraw_man_t *rdman, coord_t *coord); 59 extern int rdman_coord_free(redraw_man_t *rdman, coord_t *coord);
60 extern int rdman_coord_changed(redraw_man_t *rdman, coord_t *coord);
61 extern int rdman_redraw_changed(redraw_man_t *rdman);
62 extern int rdman_redraw_all(redraw_man_t *rdman);
57 63
58 64
59 #endif /* __REDRAW_MAN_H_ */ 65 #endif /* __REDRAW_MAN_H_ */