diff include/mb_shapes.h @ 429:9d5506968efb

Change the interface of rdman_shape_stext_new(). It had better to put text as 2nd argument after rdman. Since, text content is more meaningful than x, y position for a text object.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 29 Jul 2009 14:58:34 +0800
parents 5791263ebe7b
children 12b117b19c2a
line wrap: on
line diff
--- a/include/mb_shapes.h	Wed Jul 29 14:58:31 2009 +0800
+++ b/include/mb_shapes.h	Wed Jul 29 14:58:34 2009 +0800
@@ -294,8 +294,8 @@
 } mb_style_blk_t;
 
 extern shape_t *rdman_shape_stext_new(redraw_man_t *rdman,
-				      co_aix x, co_aix y,
-				      const char *txt);
+				      const char *txt,
+				      co_aix x, co_aix y);
 extern void sh_stext_transform(shape_t *shape);
 extern void sh_stext_draw(shape_t *shape, cairo_t *cr);
 extern int sh_stext_set_text(shape_t *shape, const char *txt);