Mercurial > MadButterfly
diff nodejs/coord.m4 @ 1434:4be04f29fa70
Add functions to search for the text recursively inside coord_t tree. Once we find the first instance, we change the text of it. We need to think about how to manage the multiple segment texts, which is composed of several tspan.
author | wycc |
---|---|
date | Mon, 11 Apr 2011 12:52:09 +0800 |
parents | 8ecee58c85c6 |
children | ef3908d9a3d2 |
line wrap: on
line diff
--- a/nodejs/coord.m4 Mon Apr 11 00:28:45 2011 +0800 +++ b/nodejs/coord.m4 Mon Apr 11 12:52:09 2011 +0800 @@ -7,6 +7,9 @@ ], [METHOD([add_shape], [xnjsmb_coord_add_shape], (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []), + + METHOD([set_text], [xnjsmb_coord_set_text], + (SELF, STR([txt])), 1, []), METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []), METHOD([clone_from_subtree], [xnjsmb_coord_clone_from_subtree], (SELF, OBJ([src], [coord], [coord_t]), ERR), 1,