Mercurial > MadButterfly
diff nodejs/paints.m4 @ 733:163f0d9e6382
Add binding for linear and radial paints for JS
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 20 Aug 2010 09:34:49 +0800 |
parents | 0b98bdc53215 |
children | be0e02948c1d |
line wrap: on
line diff
--- a/nodejs/paints.m4 Fri Aug 20 08:34:34 2010 +0800 +++ b/nodejs/paints.m4 Fri Aug 20 09:34:49 2010 +0800 @@ -15,3 +15,13 @@ STRUCT([paint_image], [paint_t], [], [], (([INHERIT], [paint]))) + +STRUCT([paint_linear], [paint_t], [], + [METHOD([set_stops], [xnjsmb_paint_linear_set_stops], + (ARRAY([stops])), 1, [])], + (([INHERIT], [paint]))) + +STRUCT([paint_radial], [paint_t], [], + [METHOD([set_stops], [xnjsmb_paint_radial_set_stops], + (ARRAY([stops])), 1, [])], + (([INHERIT], [paint])))