diff nodejs/mbfly_njs.h @ 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 86c6ebf1de25
children 586e50f82c1f
line wrap: on
line diff
--- a/nodejs/mbfly_njs.h	Fri Aug 20 08:34:34 2010 +0800
+++ b/nodejs/mbfly_njs.h	Fri Aug 20 09:34:49 2010 +0800
@@ -53,8 +53,16 @@
 				const char **err);
 paint_t *xnjsmb_paint_image_new(njs_runtime_t *rt, mb_img_data_t *img,
 				const char **err);
+paint_t *xnjsmb_paint_linear_new(njs_runtime_t *rt,
+				 float x1, float y1, float x2, float y2,
+				 const char **err);
+paint_t *xnjsmb_paint_radial_new(njs_runtime_t *rt,
+				 float cx, float cy, float r,
+				 const char **err);
 v8::Handle<v8::Value> export_xnjsmb_auto_paint_color_new(paint_t *paint);
 v8::Handle<v8::Value> export_xnjsmb_auto_paint_image_new(paint_t *paint);
+v8::Handle<v8::Value> export_xnjsmb_auto_paint_linear_new(paint_t *sh);
+v8::Handle<v8::Value> export_xnjsmb_auto_paint_radial_new(paint_t *sh);
 
 /* From font.cc */
 void xnjsmb_font_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> mb_rt_temp);