diff nodejs/paints.m4 @ 687:da12923a789a

Migrate paints.cc to use gen_v8_binding.m4
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 21:37:57 +0800
parents
children 0b98bdc53215
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/nodejs/paints.m4	Sat Aug 07 21:37:57 2010 +0800
@@ -0,0 +1,15 @@
+define([PROJ_PREFIX], [xnjsmb_auto_])dnl
+dnl
+STRUCT([paint], [paint_t], [],
+       [METHOD([fill], [xnjsmb_paint_fill],
+               (SELF, OBJ([sh], [shape], [shape_t])), 1, []),
+        METHOD([stroke], [xnjsmb_paint_stroke],
+	       (SELF, OBJ([sh], [shape], [shape_t])), 1, [])])
+
+STRUCT([paint_color], [paint_t], [],
+       [],
+       (([INHERIT], [paint])))
+
+STRUCT([paint_image], [paint_t], [],
+       [],
+       (([INHERIT], [paint])))