comparison include/mb_redraw_man.h @ 672:cbad519226d4

Make sh_image_t managed, and init property store for managed shapes
author Thinker K.F. Li <thinker@branda.to>
date Thu, 05 Aug 2010 18:00:46 +0800
parents b6b3dbeaedf3
children f43224bf3524
comparison
equal deleted inserted replaced
671:fc29a343ce7c 672:cbad519226d4
105 mb_prop_store_init(&((mb_obj_t *)(shape))->props, \ 105 mb_prop_store_init(&((mb_obj_t *)(shape))->props, \
106 (rdman)->pent_pool); \ 106 (rdman)->pent_pool); \
107 STAILQ_INS_TAIL(rdman->shapes, shape_t, sh_next, shape); \ 107 STAILQ_INS_TAIL(rdman->shapes, shape_t, sh_next, shape); \
108 if(rdman->last_mouse_over == (mb_obj_t *)(shape)) \ 108 if(rdman->last_mouse_over == (mb_obj_t *)(shape)) \
109 rdman->last_mouse_over = NULL; \ 109 rdman->last_mouse_over = NULL; \
110 mb_prop_store_init(&((mb_obj_t *)(shape))->props, \
111 (rdman)->pent_pool); \
110 } while(0) 112 } while(0)
111 extern int rdman_shape_free(redraw_man_t *rdman, shape_t *shape); 113 extern int rdman_shape_free(redraw_man_t *rdman, shape_t *shape);
112 114
113 extern int rdman_paint_free(redraw_man_t *rdman, paint_t *paint); 115 extern int rdman_paint_free(redraw_man_t *rdman, paint_t *paint);
114 116