Mercurial > MadButterfly
annotate nodejs/shapes.m4 @ 858:ed49dc0a26f1 abs_n_rel_center
Move lightbar to correct position when it being up
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Mon, 20 Sep 2010 22:43:44 +0800 |
parents | ed59e659a202 |
children | 2b492008ce26 |
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])], |
749
ed59e659a202
Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents:
748
diff
changeset
|
7 [METHOD([show], [xnjsmb_shape_show], (SELF), 0, []), |
ed59e659a202
Implement binding for hide/show for shapes and coords
Thinker K.F. Li <thinker@codemud.net>
parents:
748
diff
changeset
|
8 METHOD([hide], [xnjsmb_shape_hide], (SELF), 0, []), |
748
56a5e08cd8af
Make shapes can be removed from the tree
Thinker K.F. Li <thinker@codemud.net>
parents:
743
diff
changeset
|
9 METHOD([remove], [xnjsmb_shape_remove], (SELF), 0, [])]) |
683
7685c57e29d0
Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
10 |
748
56a5e08cd8af
Make shapes can be removed from the tree
Thinker K.F. Li <thinker@codemud.net>
parents:
743
diff
changeset
|
11 STRUCT([path], [shape_t], [], [], |
56a5e08cd8af
Make shapes can be removed from the tree
Thinker K.F. Li <thinker@codemud.net>
parents:
743
diff
changeset
|
12 (([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
|
13 |
7685c57e29d0
Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
14 STRUCT([stext], [shape_t], [], |
7685c57e29d0
Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
15 [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
|
16 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
|
17 (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
|
18 (([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
|
19 |
743
dd1f3382d6a4
Create a persistent handle for coords and shapes correctly
Thinker K.F. Li <thinker@codemud.net>
parents:
690
diff
changeset
|
20 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
|
21 (([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
|
22 |
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
23 STRUCT([rect], [shape_t], [], |
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
24 [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
|
25 (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
|
26 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
|
27 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) |