Mercurial > MadButterfly
annotate nodejs/shapes.m4 @ 744:6a988e23ad2a
A dirty implementation of removing subtree
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Wed, 25 Aug 2010 14:23:06 +0800 |
parents | dd1f3382d6a4 |
children | 56a5e08cd8af |
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, [])], |
743
dd1f3382d6a4
Create a persistent handle for coords and shapes correctly
Thinker K.F. Li <thinker@codemud.net>
parents:
690
diff
changeset
|
16 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) |
683
7685c57e29d0
Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
17 |
743
dd1f3382d6a4
Create a persistent handle for coords and shapes correctly
Thinker K.F. Li <thinker@codemud.net>
parents:
690
diff
changeset
|
18 STRUCT([image], [shape_t], [], [], |
dd1f3382d6a4
Create a persistent handle for coords and shapes correctly
Thinker K.F. Li <thinker@codemud.net>
parents:
690
diff
changeset
|
19 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) |
690
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
20 |
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
21 STRUCT([rect], [shape_t], [], |
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
22 [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
|
23 (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
|
24 NUMBER(rx), NUMBER(ry)), 6, [])], |
743
dd1f3382d6a4
Create a persistent handle for coords and shapes correctly
Thinker K.F. Li <thinker@codemud.net>
parents:
690
diff
changeset
|
25 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) |