Mercurial > MadButterfly
diff nodejs/mbfly_njs.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 | 7685c57e29d0 |
children | 86c6ebf1de25 |
line wrap: on
line diff
--- a/nodejs/mbfly_njs.m4 Sat Aug 07 19:43:17 2010 +0800 +++ b/nodejs/mbfly_njs.m4 Sat Aug 07 21:37:57 2010 +0800 @@ -17,6 +17,14 @@ METHOD([image_new], [xnjsmb_image_new], (NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h)), 4, [OBJ([image], [shape_t])], + (([MOD], [xnjsmb_mb_rt_objs_mod]))), + METHOD([paint_color_new], [xnjsmb_paint_color_new], + (NUMBER(r), NUMBER(g), NUMBER(b), NUMBER(a), ERR), 4, + [OBJ([paint_color], [paint_t])], + (([MOD], [xnjsmb_mb_rt_objs_mod]))), + METHOD([paint_image_new], [xnjsmb_paint_image_new], + (OBJ([img], [img_data], [mb_img_data_t]), ERR), 1, + [OBJ([paint_image], [paint_t])], (([MOD], [xnjsmb_mb_rt_objs_mod])))], ((CTOR, ([_X_njs_MB_new], (SELF, STR(display_name), INT(width), INT(height)), 3)))dnl )