Mercurial > MadButterfly
diff nodejs/mbfly_njs.m4 @ 733:163f0d9e6382
Add binding for linear and radial paints for JS
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 20 Aug 2010 09:34:49 +0800 |
parents | 8b7964869f7a |
children | d0ee92a96c47 |
line wrap: on
line diff
--- a/nodejs/mbfly_njs.m4 Fri Aug 20 08:34:34 2010 +0800 +++ b/nodejs/mbfly_njs.m4 Fri Aug 20 09:34:49 2010 +0800 @@ -31,6 +31,14 @@ 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]))), + METHOD([paint_linear_new], [xnjsmb_paint_linear_new], + (NUMBER(x1), NUMBER(y1), NUMBER(x2), NUMBER(y2), ERR), 4, + [OBJ([paint_linear], [paint_t])], + (([MOD], [xnjsmb_mb_rt_objs_mod]))), + METHOD([paint_radial_new], [xnjsmb_paint_radial_new], + (NUMBER(cx), NUMBER(cy), NUMBER(r), ERR), 3, + [OBJ([paint_linear], [paint_t])], (([MOD], [xnjsmb_mb_rt_objs_mod])))], ((CTOR, ([_X_njs_MB_new], (SELF, STR(display_name), INT(width), INT(height)), 3)))dnl )