Mercurial > MadButterfly
comparison nodejs/coord.m4 @ 829:379fd510ba38
Define accessor for the opacity attribute of the coord
author | wycc |
---|---|
date | Wed, 15 Sep 2010 01:17:43 +0800 |
parents | 84853c8559cf |
children | 2bcacd29d95f |
comparison
equal
deleted
inserted
replaced
828:fc035abcf82a | 829:379fd510ba38 |
---|---|
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl | 1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl |
2 STRUCT([coord], [coord_t], [], | 2 STRUCT([coord], [coord_t], |
3 [ACCESSOR([opacity], [xnjsmb_coord_get_opacity],[xnjsmb_coord_set_opacity])], | |
3 [METHOD([add_shape], [xnjsmb_coord_add_shape], | 4 [METHOD([add_shape], [xnjsmb_coord_add_shape], |
4 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []), | 5 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []), |
5 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []), | 6 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []), |
6 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []), | 7 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []), |
7 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, []), | 8 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])], |
8 METHOD([set_opacity], [xnjsmb_coord_set_opacity], | |
9 (SELF, NUMBER([opacity])), 1, [])], | |
10 ((GET_INDEX, (coord_get_index, NUMBER)), | 9 ((GET_INDEX, (coord_get_index, NUMBER)), |
11 (SET_INDEX, (coord_set_index, NUMBER)), | 10 (SET_INDEX, (coord_set_index, NUMBER)), |
12 ([STMOD], [xnjsmb_coord_mod]))) | 11 ([STMOD], [xnjsmb_coord_mod]))) |