comparison include/mb_shapes.h @ 197:bcad1ccdf45c

Translate the path string into binary array to save the parsing in the runtime. It can reduce the size as well.
author wycc@wycc-desktop
date Wed, 19 Nov 2008 00:27:20 +0800
parents 530bb7728546
children 50d253d0fcba a90fd749af82
comparison
equal deleted inserted replaced
192:54fdc2a65242 197:bcad1ccdf45c
37 37
38 /*! \defgroup shape_path Shape of Path 38 /*! \defgroup shape_path Shape of Path
39 * @{ 39 * @{
40 */ 40 */
41 extern shape_t *rdman_shape_path_new(redraw_man_t *rdman, char *data); 41 extern shape_t *rdman_shape_path_new(redraw_man_t *rdman, char *data);
42 extern shape_t *rdman_shape_path_new_from_binary(redraw_man_t *rdman, char *commands, co_aix *arg,int arg_cnt,int *fix_arg,int fix_arg_cnt);
42 extern void sh_path_transform(shape_t *shape); 43 extern void sh_path_transform(shape_t *shape);
43 extern void sh_path_draw(shape_t *shape, cairo_t *cr); 44 extern void sh_path_draw(shape_t *shape, cairo_t *cr);
44 /* @} */ 45 /* @} */
45 46
46 /*! \defgroup shape_text Shape of Text 47 /*! \defgroup shape_text Shape of Text