Mercurial > MadButterfly
annotate nodejs/paints.m4 @ 717:b822b1912d67
Paint with black for unspecified, not "none", fill and stroke.
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 14 Aug 2010 23:52:43 +0800 |
parents | 0b98bdc53215 |
children | 163f0d9e6382 |
rev | line source |
---|---|
687
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
1 define([PROJ_PREFIX], [xnjsmb_auto_])dnl |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
2 dnl |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
3 STRUCT([paint], [paint_t], [], |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
4 [METHOD([fill], [xnjsmb_paint_fill], |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
5 (SELF, OBJ([sh], [shape], [shape_t])), 1, []), |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
6 METHOD([stroke], [xnjsmb_paint_stroke], |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
7 (SELF, OBJ([sh], [shape], [shape_t])), 1, [])]) |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
8 |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
9 STRUCT([paint_color], [paint_t], [], |
699
0b98bdc53215
Add binding for color changing of paint_color_t in JS
Thinker K.F. Li <thinker@branda.to>
parents:
687
diff
changeset
|
10 [METHOD([set_color], [xnjsmb_paint_color_set_color], |
0b98bdc53215
Add binding for color changing of paint_color_t in JS
Thinker K.F. Li <thinker@branda.to>
parents:
687
diff
changeset
|
11 (SELF, NUMBER([r]), NUMBER([g]), NUMBER([b]), NUMBER([a])), |
0b98bdc53215
Add binding for color changing of paint_color_t in JS
Thinker K.F. Li <thinker@branda.to>
parents:
687
diff
changeset
|
12 4, [])], |
687
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
13 (([INHERIT], [paint]))) |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
14 |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
15 STRUCT([paint_image], [paint_t], [], |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
16 [], |
da12923a789a
Migrate paints.cc to use gen_v8_binding.m4
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
17 (([INHERIT], [paint]))) |