changeset 1062:a8d20bc8ce40

Rename rdman_shape_man() to rdman_man_shape() to mean managing a shape
author Thinker K.F. Li <thinker@codemud.net>
date Sun, 28 Nov 2010 13:18:49 +0800
parents 5f38974372db
children 09c1ef31884f
files include/mb_redraw_man.h include/mb_shapes.h src/redraw_man.c src/shape_image.c src/shape_path.c src/shape_rect.c src/shape_stext.c src/shape_text.c
diffstat 8 files changed, 13 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/include/mb_redraw_man.h	Sun Nov 28 13:01:11 2010 +0800
+++ b/include/mb_redraw_man.h	Sun Nov 28 13:18:49 2010 +0800
@@ -112,7 +112,7 @@
 extern int rdman_add_shape(redraw_man_t *rdman,
 			   shape_t *shape, coord_t *coord);
 /*! \brief Make a shape been managed by a redraw manager. */
-#define rdman_shape_man(rdman, shape)					\
+#define rdman_man_shape(rdman, shape)					\
     do {								\
 	mb_prop_store_init(&((mb_obj_t *)(shape))->props,		\
 			   (rdman)->pent_pool);				\
--- a/include/mb_shapes.h	Sun Nov 28 13:01:11 2010 +0800
+++ b/include/mb_shapes.h	Sun Nov 28 13:18:49 2010 +0800
@@ -28,7 +28,7 @@
  *     - mb_obj_init() to initialize shape_t::obj.
  *   - assign *_free() to \ref shape_t::free.
  *   - make new object been managed by a redraw manager.
- *     - call rdman_shape_man()
+ *     - call rdman_man_shape()
  * - *_free()
  *   - assigned to \ref shape_t::free.
  * - *_transform()
--- a/src/redraw_man.c	Sun Nov 28 13:01:11 2010 +0800
+++ b/src/redraw_man.c	Sun Nov 28 13:18:49 2010 +0800
@@ -2745,7 +2745,7 @@
     dummy->draw_cnt = 0;
     dummy->shape.free = sh_dummy_free;
 
-    rdman_shape_man(rdman, (shape_t *)dummy);
+    rdman_man_shape(rdman, (shape_t *)dummy);
 
     return (shape_t *)dummy;
 }
--- a/src/shape_image.c	Sun Nov 28 13:01:11 2010 +0800
+++ b/src/shape_image.c	Sun Nov 28 13:18:49 2010 +0800
@@ -87,7 +87,7 @@
     img->w = w;
     img->h = h;
 
-    rdman_shape_man(rdman, (shape_t *)img);
+    rdman_man_shape(rdman, (shape_t *)img);
 
     return (shape_t *)img;
 }
--- a/src/shape_path.c	Sun Nov 28 13:01:11 2010 +0800
+++ b/src/shape_path.c	Sun Nov 28 13:18:49 2010 +0800
@@ -49,8 +49,8 @@
 #define PI 3.1415926535897931
 
 #ifdef UNITTEST
-#undef rdman_shape_man
-#define rdman_shape_man(x, y)
+#undef rdman_man_shape
+#define rdman_man_shape(x, y)
 
 #undef elmpool_elm_alloc
 #define elmpool_elm_alloc(pool) _elmpool_elm_alloc(pool)
@@ -847,7 +847,7 @@
     path->shape.free = sh_path_free;
     path->rdman = rdman;
 
-    rdman_shape_man(rdman, (shape_t *)path);
+    rdman_man_shape(rdman, (shape_t *)path);
 
     return (shape_t *)path;
 }
@@ -888,7 +888,7 @@
     path->shape.free = sh_path_free;
     path->rdman = rdman;
 
-    rdman_shape_man(rdman, (shape_t *)path);
+    rdman_man_shape(rdman, (shape_t *)path);
 
     return (shape_t *)path;
 }
--- a/src/shape_rect.c	Sun Nov 28 13:01:11 2010 +0800
+++ b/src/shape_rect.c	Sun Nov 28 13:18:49 2010 +0800
@@ -45,7 +45,7 @@
     rect->shape.free = sh_rect_free;
     rect->rdman = rdman;
 
-    rdman_shape_man(rdman, (shape_t *)rect);
+    rdman_man_shape(rdman, (shape_t *)rect);
 
     return (shape_t *)rect;
 }
--- a/src/shape_stext.c	Sun Nov 28 13:01:11 2010 +0800
+++ b/src/shape_stext.c	Sun Nov 28 13:18:49 2010 +0800
@@ -36,8 +36,8 @@
 
 #undef mb_obj_init
 #define mb_obj_init(o, t)
-#undef rdman_shape_man
-#define rdman_shape_man(rdman, sh)
+#undef rdman_man_shape
+#define rdman_man_shape(rdman, sh)
 
 #define rdman_shape_stext_new ut_rdman_shape_stext_new
 #define sh_stext_transform ut_sh_stext_transform
@@ -306,7 +306,7 @@
 
     txt_o->shape.free = _rdman_shape_stext_free;
 
-    rdman_shape_man(rdman, (shape_t *)txt_o);
+    rdman_man_shape(rdman, (shape_t *)txt_o);
 
     return (shape_t *)txt_o;
 }
--- a/src/shape_text.c	Sun Nov 28 13:01:11 2010 +0800
+++ b/src/shape_text.c	Sun Nov 28 13:18:49 2010 +0800
@@ -68,7 +68,7 @@
     text->align = TEXTALIGN_START;
     text->w = text->h = 0;
 
-    rdman_shape_man(rdman, (shape_t *)text);
+    rdman_man_shape(rdman, (shape_t *)text);
 
     return (shape_t *)text;
 }