annotate nodejs/coord.m4 @ 787:0899dcac441c

Set bounding box attributes for JS Parse inkscape:bbox-x/y/width/height to - bbox_x - bbox_y - bbox_width - bbox_height
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 31 Aug 2010 01:26:22 +0800
parents ed59e659a202
children 84853c8559cf
rev   line source
661
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 STRUCT([coord], [coord_t], [],
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 [METHOD([add_shape], [xnjsmb_coord_add_shape],
741
d8764f10e141 Remove a coord from the tree in JS
Thinker K.F. Li <thinker@codemud.net>
parents: 680
diff changeset
4 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
749
ed59e659a202 Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents: 745
diff changeset
5 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),
ed59e659a202 Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents: 745
diff changeset
6 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
ed59e659a202 Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents: 745
diff changeset
7 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])],
661
90c7726bc953 Replace part code of coord.cc by the code generated by generator
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 ((GET_INDEX, (coord_get_index, NUMBER)),
680
a588eefd3f04 Refactor to xnjsmb_coord_mod().
Thinker K.F. Li <thinker@branda.to>
parents: 666
diff changeset
9 (SET_INDEX, (coord_set_index, NUMBER)),
a588eefd3f04 Refactor to xnjsmb_coord_mod().
Thinker K.F. Li <thinker@branda.to>
parents: 666
diff changeset
10 ([STMOD], [xnjsmb_coord_mod])))