Mercurial > MadButterfly
diff include/mb_types.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 | c1afd14caa85 |
children | 27774b93521e |
line wrap: on
line diff
--- a/include/mb_types.h Mon Mar 09 01:35:19 2009 +0800 +++ b/include/mb_types.h Mon Mar 09 23:05:57 2009 +0800 @@ -78,12 +78,19 @@ * singleton for each paint type. */ struct _paint { + int pnt_type; int flags; void (*prepare)(paint_t *paint, cairo_t *cr); void (*free)(struct _redraw_man *rdman, paint_t *paint); STAILQ(shnode_t) members; paint_t *pnt_next; /*!< \brief Collect all paints of a rdman. */ }; +enum { MBP_DUMMY, + MBP_COLOR, + MBP_LINEAR, + MBP_RADIAL, + MBP_IMAGE +}; #define PNTF_FREE 0x1