Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
428:c3faebaec0c4 | 429:9d5506968efb |
---|---|
292 mb_font_face_t *face; | 292 mb_font_face_t *face; |
293 co_aix font_sz; | 293 co_aix font_sz; |
294 } mb_style_blk_t; | 294 } mb_style_blk_t; |
295 | 295 |
296 extern shape_t *rdman_shape_stext_new(redraw_man_t *rdman, | 296 extern shape_t *rdman_shape_stext_new(redraw_man_t *rdman, |
297 co_aix x, co_aix y, | 297 const char *txt, |
298 const char *txt); | 298 co_aix x, co_aix y); |
299 extern void sh_stext_transform(shape_t *shape); | 299 extern void sh_stext_transform(shape_t *shape); |
300 extern void sh_stext_draw(shape_t *shape, cairo_t *cr); | 300 extern void sh_stext_draw(shape_t *shape, cairo_t *cr); |
301 extern int sh_stext_set_text(shape_t *shape, const char *txt); | 301 extern int sh_stext_set_text(shape_t *shape, const char *txt); |
302 extern int sh_stext_set_style(shape_t *shape, | 302 extern int sh_stext_set_style(shape_t *shape, |
303 const mb_style_blk_t *blks, | 303 const mb_style_blk_t *blks, |