Mercurial > MadButterfly
annotate nodejs/shapes.m4 @ 1386:9f3f20c4a4fb
Use jpg instead of PNG.
Fix the issue that we load the last image when the SVG is not loaded correctly.
author | wycc |
---|---|
date | Fri, 25 Mar 2011 03:52:33 +0800 |
parents | 2b492008ce26 |
children |
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], [], |
885
2b492008ce26
Told redraw manager that a text is dirty when change its text at JS
Thinker K.F. Li <thinker@codemud.net>
parents:
749
diff
changeset
|
15 [METHOD([set_text], [xnjsmb_sh_stext_set_text], |
2b492008ce26
Told redraw manager that a text is dirty when change its text at JS
Thinker K.F. Li <thinker@codemud.net>
parents:
749
diff
changeset
|
16 (SELF, STR([txt])), 1, []), |
683
7685c57e29d0
Migrate JS shapes binding to gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
17 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
|
18 (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
|
19 (([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
|
20 |
743
dd1f3382d6a4
Create a persistent handle for coords and shapes correctly
Thinker K.F. Li <thinker@codemud.net>
parents:
690
diff
changeset
|
21 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
|
22 (([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
|
23 |
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
24 STRUCT([rect], [shape_t], [], |
86c6ebf1de25
Add JS binding for sh_rect_t
Thinker K.F. Li <thinker@branda.to>
parents:
689
diff
changeset
|
25 [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
|
26 (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
|
27 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
|
28 (([INHERIT], [shape]), ([STMOD], [xnjsmb_shape_mod]))) |