annotate nodejs/mbfly_njs.m4 @ 683:7685c57e29d0

Migrate JS shapes binding to gen_v8_binding.m4
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 18:27:53 +0800
parents f264b50c469c
children da12923a789a
rev   line source
673
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 dnl
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 dnl
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 STRUCT([mb_rt], [njs_runtime_t], [],
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 [METHOD([coord_new], [xnjsmb_coord_new],
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 (OBJ([parent], [coord], [coord_t]), ERR), 1,
683
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
7 [OBJ([coord], [coord_t])],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
8 (([MOD], [xnjsmb_mb_rt_objs_mod]))),
673
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9 METHOD([redraw_changed], [xnjsmb_redraw_changed], (), 0, []),
683
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
10 METHOD([redraw_all], [xnjsmb_redraw_all], (), 0, []),
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
11 METHOD([path_new], [xnjsmb_path_new], (STR(txt)), 1,
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
12 [OBJ([path], [shape_t])], (([MOD], [xnjsmb_mb_rt_objs_mod]))),
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
13 METHOD([stext_new], [xnjsmb_stext_new],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
14 (STR(txt), NUMBER(x), NUMBER(y)), 3,
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
15 [OBJ([stext], [shape_t])],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
16 (([MOD], [xnjsmb_mb_rt_objs_mod]))),
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
17 METHOD([image_new], [xnjsmb_image_new],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
18 (NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h)), 4,
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
19 [OBJ([image], [shape_t])],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents: 676
diff changeset
20 (([MOD], [xnjsmb_mb_rt_objs_mod])))],
673
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
21 ((CTOR, ([_X_njs_MB_new], (SELF, STR(display_name), INT(width), INT(height)), 3)))dnl
f5d2ff34c6f6 Definition of binding for mblfy_njs.cc
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
22 )