diff 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
line wrap: on
line diff
--- a/src/mb_types.h	Sun Aug 10 20:25:14 2008 +0800
+++ b/src/mb_types.h	Sun Aug 10 21:32:42 2008 +0800
@@ -11,6 +11,14 @@
 typedef struct _shnode shnode_t;
 typedef struct _paint paint_t;
 
+/*! \brief Base of paint types.
+ *
+ * Paints should be freed by users by calling paint_t::free() of
+ * the paint.
+ *
+ * \todo move member functions to a seperate structure and setup a
+ * singleton fro each paint type.
+ */
 struct _paint {
     void (*prepare)(paint_t *paint, cairo_t *cr);
     void (*free)(paint_t *paint);