Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
355:958b67d911db | 356:3e84458968ec |
---|---|
76 * | 76 * |
77 * \todo move member functions to a seperate structure and setup a | 77 * \todo move member functions to a seperate structure and setup a |
78 * singleton for each paint type. | 78 * singleton for each paint type. |
79 */ | 79 */ |
80 struct _paint { | 80 struct _paint { |
81 int pnt_type; | |
81 int flags; | 82 int flags; |
82 void (*prepare)(paint_t *paint, cairo_t *cr); | 83 void (*prepare)(paint_t *paint, cairo_t *cr); |
83 void (*free)(struct _redraw_man *rdman, paint_t *paint); | 84 void (*free)(struct _redraw_man *rdman, paint_t *paint); |
84 STAILQ(shnode_t) members; | 85 STAILQ(shnode_t) members; |
85 paint_t *pnt_next; /*!< \brief Collect all paints of a rdman. */ | 86 paint_t *pnt_next; /*!< \brief Collect all paints of a rdman. */ |
87 }; | |
88 enum { MBP_DUMMY, | |
89 MBP_COLOR, | |
90 MBP_LINEAR, | |
91 MBP_RADIAL, | |
92 MBP_IMAGE | |
86 }; | 93 }; |
87 | 94 |
88 #define PNTF_FREE 0x1 | 95 #define PNTF_FREE 0x1 |
89 | 96 |
90 struct _shnode { | 97 struct _shnode { |