Mercurial > MadButterfly
comparison 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 |
comparison
equal
deleted
inserted
replaced
732:6879aa403306 | 733:163f0d9e6382 |
---|---|
51 paint_t *xnjsmb_paint_color_new(njs_runtime_t *rt, | 51 paint_t *xnjsmb_paint_color_new(njs_runtime_t *rt, |
52 float r, float g, float b, float a, | 52 float r, float g, float b, float a, |
53 const char **err); | 53 const char **err); |
54 paint_t *xnjsmb_paint_image_new(njs_runtime_t *rt, mb_img_data_t *img, | 54 paint_t *xnjsmb_paint_image_new(njs_runtime_t *rt, mb_img_data_t *img, |
55 const char **err); | 55 const char **err); |
56 paint_t *xnjsmb_paint_linear_new(njs_runtime_t *rt, | |
57 float x1, float y1, float x2, float y2, | |
58 const char **err); | |
59 paint_t *xnjsmb_paint_radial_new(njs_runtime_t *rt, | |
60 float cx, float cy, float r, | |
61 const char **err); | |
56 v8::Handle<v8::Value> export_xnjsmb_auto_paint_color_new(paint_t *paint); | 62 v8::Handle<v8::Value> export_xnjsmb_auto_paint_color_new(paint_t *paint); |
57 v8::Handle<v8::Value> export_xnjsmb_auto_paint_image_new(paint_t *paint); | 63 v8::Handle<v8::Value> export_xnjsmb_auto_paint_image_new(paint_t *paint); |
64 v8::Handle<v8::Value> export_xnjsmb_auto_paint_linear_new(paint_t *sh); | |
65 v8::Handle<v8::Value> export_xnjsmb_auto_paint_radial_new(paint_t *sh); | |
58 | 66 |
59 /* From font.cc */ | 67 /* From font.cc */ |
60 void xnjsmb_font_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> mb_rt_temp); | 68 void xnjsmb_font_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> mb_rt_temp); |
61 | 69 |
62 /* From image_ldr.cc */ | 70 /* From image_ldr.cc */ |