diff nodejs/shapes.m4 @ 690:86c6ebf1de25

Add JS binding for sh_rect_t
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 23:00:16 +0800
parents a05a4a27ff46
children dd1f3382d6a4
line wrap: on
line diff
--- a/nodejs/shapes.m4	Sat Aug 07 22:33:02 2010 +0800
+++ b/nodejs/shapes.m4	Sat Aug 07 23:00:16 2010 +0800
@@ -16,3 +16,9 @@
        (([INHERIT], [shape])))
 
 STRUCT([image], [shape_t], [], [], (([INHERIT], [shape])))
+
+STRUCT([rect], [shape_t], [],
+       [METHOD([set], [xnjsmb_sh_rect_set],
+	       (SELF, NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h),
+	        NUMBER(rx), NUMBER(ry)), 6, [])],
+       (([INHERIT], [shape])))