diff nodejs/coord.m4 @ 749:ed59e659a202

Implement binding for hide/show for shapes and coords
author Thinker K.F. Li <thinker@codemud.net>
date Wed, 25 Aug 2010 19:37:52 +0800
parents 4ccb0553e804
children 84853c8559cf
line wrap: on
line diff
--- a/nodejs/coord.m4	Wed Aug 25 18:46:47 2010 +0800
+++ b/nodejs/coord.m4	Wed Aug 25 19:37:52 2010 +0800
@@ -2,7 +2,9 @@
 STRUCT([coord], [coord_t], [],
 	[METHOD([add_shape], [xnjsmb_coord_add_shape],
 		(SELF, OBJ([shape], [shape], [shape_t]), ERR), 1, []),
-	 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, [])],
+	 METHOD([remove], [xnjsmb_coord_remove], (SELF), 0, []),
+	 METHOD([show], [xnjsmb_coord_show], (SELF), 0, []),
+	 METHOD([hide], [xnjsmb_coord_hide], (SELF), 0, [])],
 	((GET_INDEX, (coord_get_index, NUMBER)),
 	 (SET_INDEX, (coord_set_index, NUMBER)),
 	 ([STMOD], [xnjsmb_coord_mod])))