annotate nodejs/coord.m4 @ 1000:c92aabb054e2 refine_backend_if

Declare functions correctly
author Thinker K.F. Li <thinker@codemud.net>
date Mon, 22 Nov 2010 00:42:30 +0800
parents 2bcacd29d95f
children 0afd598a0b30
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
829
379fd510ba38 Define accessor for the opacity attribute of the coord
wycc
parents: 810
diff changeset
2 STRUCT([coord], [coord_t],
843
2bcacd29d95f Define accessor for x and y to implement absolute location
wycc
parents: 829
diff changeset
3 [
2bcacd29d95f Define accessor for x and y to implement absolute location
wycc
parents: 829
diff changeset
4 ACCESSOR([opacity], [xnjsmb_coord_get_opacity],[xnjsmb_coord_set_opacity]),
2bcacd29d95f Define accessor for x and y to implement absolute location
wycc
parents: 829
diff changeset
5 ACCESSOR([x], [xnjsmb_coord_get_x],[xnjsmb_coord_set_x]),
2bcacd29d95f Define accessor for x and y to implement absolute location
wycc
parents: 829
diff changeset
6 ACCESSOR([y], [xnjsmb_coord_get_y],[xnjsmb_coord_set_y]),
2bcacd29d95f Define accessor for x and y to implement absolute location
wycc
parents: 829
diff changeset
7 ],
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 [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
9 (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
10 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
11 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
829
379fd510ba38 Define accessor for the opacity attribute of the coord
wycc
parents: 810
diff changeset
12 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
13 ((GET_INDEX, (coord_get_index, NUMBER)),
680
a588eefd3f04 Refactor to xnjsmb_coord_mod().
Thinker K.F. Li <thinker@branda.to>
parents: 666
diff changeset
14 (SET_INDEX, (coord_set_index, NUMBER)),
a588eefd3f04 Refactor to xnjsmb_coord_mod().
Thinker K.F. Li <thinker@branda.to>
parents: 666
diff changeset
15 ([STMOD], [xnjsmb_coord_mod])))