Mercurial > MadButterfly
diff src/redraw_man.h @ 30:e06a4a667ce2
Accept mouse/pointer event and hint the shape that the pointer is over.
- add find_shape_at_pos()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 05 Aug 2008 12:40:45 +0800 |
parents | e598bc809c0f |
children | 943acee7f346 |
line wrap: on
line diff
--- a/src/redraw_man.h Mon Aug 04 21:13:32 2008 +0800 +++ b/src/redraw_man.h Tue Aug 05 12:40:45 2008 +0800 @@ -47,6 +47,10 @@ int n_dirty_areas; area_t **dirty_areas; + int max_gen_geos; + int n_gen_geos; + geo_t **gen_geos; /* general geo list */ + cairo_t *cr; cairo_t *backend; } redraw_man_t; @@ -66,6 +70,7 @@ extern int rdman_shape_changed(redraw_man_t *rdman, shape_t *shape); extern int rdman_redraw_changed(redraw_man_t *rdman); extern int rdman_redraw_all(redraw_man_t *rdman); +extern int rdman_force_clean(redraw_man_t *rdman); extern shnode_t *shnode_new(redraw_man_t *rdman, shape_t *shape); #define shnode_free(rdman, node) elmpool_elm_free((rdman)->shnode_pool, node) #define shnode_list_free(rdman, q) \ @@ -103,5 +108,8 @@ } while(0) extern int rdman_paint_changed(redraw_man_t *rdman, paint_t *paint); +extern shape_t *find_shape_at_pos(redraw_man_t *rdman, + co_aix x, co_aix y, int *in_stroke); + #endif /* __REDRAW_MAN_H_ */