Mercurial > MadButterfly
comparison src/mb_types.h @ 58:1ca417f741f1
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 10 Aug 2008 21:32:42 +0800 |
parents | ab028c9f0930 |
children | 9ab15ebc9061 |
comparison
equal
deleted
inserted
replaced
57:ab028c9f0930 | 58:1ca417f741f1 |
---|---|
9 typedef struct _geo geo_t; | 9 typedef struct _geo geo_t; |
10 typedef struct _area area_t; | 10 typedef struct _area area_t; |
11 typedef struct _shnode shnode_t; | 11 typedef struct _shnode shnode_t; |
12 typedef struct _paint paint_t; | 12 typedef struct _paint paint_t; |
13 | 13 |
14 /*! \brief Base of paint types. | |
15 * | |
16 * Paints should be freed by users by calling paint_t::free() of | |
17 * the paint. | |
18 * | |
19 * \todo move member functions to a seperate structure and setup a | |
20 * singleton fro each paint type. | |
21 */ | |
14 struct _paint { | 22 struct _paint { |
15 void (*prepare)(paint_t *paint, cairo_t *cr); | 23 void (*prepare)(paint_t *paint, cairo_t *cr); |
16 void (*free)(paint_t *paint); | 24 void (*free)(paint_t *paint); |
17 STAILQ(shnode_t) members; | 25 STAILQ(shnode_t) members; |
18 }; | 26 }; |