Mercurial > MadButterfly
comparison include/mb_shapes.h @ 356:3e84458968ec
Move mb_img_data_t out from argument list of rdman_shape_image_new().
- Application should specify content of sh_image_t by fill the shape
with a paint_image_t.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Mon, 09 Mar 2009 23:05:57 +0800 |
parents | 04d22dc38bc0 |
children | 27774b93521e |
comparison
equal
deleted
inserted
replaced
355:958b67d911db | 356:3e84458968ec |
---|---|
233 | 233 |
234 /*! \defgroup shape_image Shape of Image | 234 /*! \defgroup shape_image Shape of Image |
235 * @{ | 235 * @{ |
236 */ | 236 */ |
237 extern shape_t *rdman_shape_image_new(redraw_man_t *rdman, | 237 extern shape_t *rdman_shape_image_new(redraw_man_t *rdman, |
238 mb_img_data_t *img_data, | |
239 co_aix x, co_aix y, | 238 co_aix x, co_aix y, |
240 co_aix w, co_aix h); | 239 co_aix w, co_aix h); |
241 extern void sh_image_transform(shape_t *shape); | 240 extern void sh_image_transform(shape_t *shape); |
242 extern void sh_image_draw(shape_t *shape, cairo_t *cr); | 241 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, | 242 extern void sh_image_set_geometry(shape_t *shape, co_aix x, co_aix y, |
244 co_aix w, co_aix h); | 243 co_aix w, co_aix h); |
245 extern int sh_image_set_img_data(shape_t *shape, mb_img_data_t *img_data); | |
246 extern mb_img_data_t *sh_image_get_img_data(shape_t *shape); | |
247 /* @} */ | 244 /* @} */ |
248 /* @} */ | 245 /* @} */ |
249 | 246 |
250 #endif /* __SHAPES_H_ */ | 247 #endif /* __SHAPES_H_ */ |