annotate nodejs/shapes.m4 @ 731:1719484ed15d

Make the argument key can be an array to register multiple keys.
author wycc
date Fri, 20 Aug 2010 07:25:59 +0800
parents 86c6ebf1de25
children dd1f3382d6a4
rev   line source
683
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
2 dnl
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
3 STRUCT([shape], [shape_t],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
4 [ACCESSOR([stroke_width],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
5 [xnjsmb_shape_stroke_width_get],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
6 [xnjsmb_shape_stroke_width_set])],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
7 [METHOD([show], [sh_show], (), 0, []),
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
8 METHOD([hide], [sh_hide], (), 0, [])])
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
9
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
10 STRUCT([path], [shape_t], [], [], (([INHERIT], [shape])))
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
11
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
12 STRUCT([stext], [shape_t], [],
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
13 [METHOD([set_text], [sh_stext_set_text], (STR([txt])), 1, []),
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
14 METHOD([set_style], [xnjsmb_sh_stext_set_style],
689
a05a4a27ff46 Fix bug of losting rdman in xnjsmb_sh_stext_set_style
Thinker K.F. Li <thinker@branda.to>
parents: 683
diff changeset
15 (SELF, ARRAY([blks]), ERR), 1, [])],
683
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
16 (([INHERIT], [shape])))
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
17
7685c57e29d0 Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff changeset
18 STRUCT([image], [shape_t], [], [], (([INHERIT], [shape])))
690
86c6ebf1de25 Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents: 689
diff changeset
19
86c6ebf1de25 Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents: 689
diff changeset
20 STRUCT([rect], [shape_t], [],
86c6ebf1de25 Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents: 689
diff changeset
21 [METHOD([set], [xnjsmb_sh_rect_set],
86c6ebf1de25 Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents: 689
diff changeset
22 (SELF, NUMBER(x), NUMBER(y), NUMBER(w), NUMBER(h),
86c6ebf1de25 Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents: 689
diff changeset
23 NUMBER(rx), NUMBER(ry)), 6, [])],
86c6ebf1de25 Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents: 689
diff changeset
24 (([INHERIT], [shape])))