Mercurial > MadButterfly
comparison include/mb_shapes.h @ 348:04d22dc38bc0
Change declaration of sh_image_set_img_data().
- x, y, w, h are not passed to sh_image_set_img_data() any more.
- Applications should manage life-cycle of mb_img_data_t, paint_image_t do
not manage it for applications any more.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 08 Mar 2009 22:24:54 +0800 |
parents | bb6e964da1c8 |
children | 3e84458968ec |
comparison
equal
deleted
inserted
replaced
347:b247beaac4f0 | 348:04d22dc38bc0 |
---|---|
240 co_aix w, co_aix h); | 240 co_aix w, co_aix h); |
241 extern void sh_image_transform(shape_t *shape); | 241 extern void sh_image_transform(shape_t *shape); |
242 extern void sh_image_draw(shape_t *shape, cairo_t *cr); | 242 extern void sh_image_draw(shape_t *shape, cairo_t *cr); |
243 extern void sh_image_set_geometry(shape_t *shape, co_aix x, co_aix y, | 243 extern void sh_image_set_geometry(shape_t *shape, co_aix x, co_aix y, |
244 co_aix w, co_aix h); | 244 co_aix w, co_aix h); |
245 extern int sh_image_set_img_data(shape_t *shape, mb_img_data_t *img_data, | 245 extern int sh_image_set_img_data(shape_t *shape, mb_img_data_t *img_data); |
246 co_aix x, co_aix y, co_aix w, co_aix h); | |
247 extern mb_img_data_t *sh_image_get_img_data(shape_t *shape); | 246 extern mb_img_data_t *sh_image_get_img_data(shape_t *shape); |
248 /* @} */ | 247 /* @} */ |
249 /* @} */ | 248 /* @} */ |
250 | 249 |
251 #endif /* __SHAPES_H_ */ | 250 #endif /* __SHAPES_H_ */ |