diff 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
line wrap: on
line diff
--- a/nodejs/coord.m4	Sat Sep 18 21:23:51 2010 +0800
+++ b/nodejs/coord.m4	Sun Sep 19 11:36:03 2010 +0800
@@ -1,6 +1,10 @@
 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
 STRUCT([coord], [coord_t], 
-        [ACCESSOR([opacity], [xnjsmb_coord_get_opacity],[xnjsmb_coord_set_opacity])],
+        [
+	ACCESSOR([opacity], [xnjsmb_coord_get_opacity],[xnjsmb_coord_set_opacity]),
+	ACCESSOR([x], [xnjsmb_coord_get_x],[xnjsmb_coord_set_x]),
+	ACCESSOR([y], [xnjsmb_coord_get_y],[xnjsmb_coord_set_y]),
+	],
 	[METHOD([add_shape], [xnjsmb_coord_add_shape],
 		(SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
 	 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),