Mercurial > MadButterfly
comparison src/redraw_man.h @ 139:1695a4b02b14
Members of coords are geos instead of shapes, now.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 22 Sep 2008 19:22:57 +0800 |
parents | 4c2d83721bcc |
children | e96a584487af |
comparison
equal
deleted
inserted
replaced
138:9f4fc9ecfd1f | 139:1695a4b02b14 |
---|---|
20 * | 20 * |
21 * Dirty flag is clear when the transformation matrix of a coord | 21 * Dirty flag is clear when the transformation matrix of a coord |
22 * object been recomputed or when a geo_t objects been redrawed. | 22 * object been recomputed or when a geo_t objects been redrawed. |
23 */ | 23 */ |
24 typedef struct _redraw_man { | 24 typedef struct _redraw_man { |
25 #ifdef GEO_ORDER | |
26 unsigned int next_geo_order; | |
27 #endif | |
28 int n_geos; | |
29 STAILQ(geo_t) all_geos; | |
30 | |
31 unsigned int next_coord_order; | 25 unsigned int next_coord_order; |
32 int n_coords; | 26 int n_coords; |
33 coord_t *root_coord; | 27 coord_t *root_coord; |
34 | 28 |
35 elmpool_t *geo_pool; | 29 elmpool_t *geo_pool; |
77 extern int rdman_shape_changed(redraw_man_t *rdman, shape_t *shape); | 71 extern int rdman_shape_changed(redraw_man_t *rdman, shape_t *shape); |
78 extern int rdman_redraw_changed(redraw_man_t *rdman); | 72 extern int rdman_redraw_changed(redraw_man_t *rdman); |
79 extern int rdman_redraw_all(redraw_man_t *rdman); | 73 extern int rdman_redraw_all(redraw_man_t *rdman); |
80 extern int rdman_redraw_area(redraw_man_t *rdman, co_aix x, co_aix y, | 74 extern int rdman_redraw_area(redraw_man_t *rdman, co_aix x, co_aix y, |
81 co_aix w, co_aix h); | 75 co_aix w, co_aix h); |
76 extern geo_t *rdman_geos(redraw_man_t *rdman, geo_t *last); | |
82 extern int rdman_force_clean(redraw_man_t *rdman); | 77 extern int rdman_force_clean(redraw_man_t *rdman); |
83 extern shnode_t *shnode_new(redraw_man_t *rdman, shape_t *shape); | 78 extern shnode_t *shnode_new(redraw_man_t *rdman, shape_t *shape); |
84 #define shnode_free(rdman, node) elmpool_elm_free((rdman)->shnode_pool, node) | 79 #define shnode_free(rdman, node) elmpool_elm_free((rdman)->shnode_pool, node) |
85 #define shnode_list_free(rdman, q) \ | 80 #define shnode_list_free(rdman, q) \ |
86 do { \ | 81 do { \ |