comparison nodejs/coord.m4 @ 843:2bcacd29d95f

Define accessor for x and y to implement absolute location
author wycc
date Sun, 19 Sep 2010 11:36:03 +0800
parents 379fd510ba38
children 0afd598a0b30
comparison
equal deleted inserted replaced
842:76fe4afce640 843:2bcacd29d95f
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 [
4 ACCESSOR([opacity], [xnjsmb_coord_get_opacity],[xnjsmb_coord_set_opacity]),
5 ACCESSOR([x], [xnjsmb_coord_get_x],[xnjsmb_coord_set_x]),
6 ACCESSOR([y], [xnjsmb_coord_get_y],[xnjsmb_coord_set_y]),
7 ],
4 [METHOD([add_shape], [xnjsmb_coord_add_shape], 8 [METHOD([add_shape], [xnjsmb_coord_add_shape],
5 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []), 9 (SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
6 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []), 10 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),
7 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []), 11 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
8 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])], 12 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])],