Mercurial > MadButterfly
view nodejs/mbfly_njs.m4 @ 736:cdd578c1f866
Add Canvas class for the dynamic content generation. The testcanvas.js is used to demostrate the capability of it.
author | wycc |
---|---|
date | Sat, 21 Aug 2010 19:12:43 +0800 |
parents | 8b7964869f7a |
children | 163f0d9e6382 |
line wrap: on
line source
dnl define([PROJ_PREFIX], [xnjsmb_auto_])dnl dnl STRUCT([mb_rt], [njs_runtime_t], [], [METHOD([coord_new], [xnjsmb_coord_new], (OBJ([parent], [coord], [coord_t]), ERR), 1, [OBJ([coord], [coord_t])], (([MOD], [xnjsmb_mb_rt_objs_mod]))), METHOD([redraw_changed], [xnjsmb_redraw_changed], (), 0, []), METHOD([redraw_all], [xnjsmb_redraw_all], (), 0, []), METHOD([flush], [X_njs_MB_flush], (), 0, []), METHOD([path_new], [xnjsmb_path_new], (STR(txt)), 1, [OBJ([path], [shape_t])], (([MOD], [xnjsmb_mb_rt_objs_mod]))), METHOD([stext_new], [xnjsmb_stext_new], (STR(txt), NUMBER(x), NUMBER(y)), 3, [OBJ([stext], [shape_t])], (([MOD], [xnjsmb_mb_rt_objs_mod]))), 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([rect_new], [xnjsmb_rect_new], (NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h), NUMBER(rx), NUMBER(ry), ERR), 6, [OBJ([rect], [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 )