comparison nodejs/mbfly_njs.h @ 690:86c6ebf1de25

Add JS binding for sh_rect_t
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Aug 2010 23:00:16 +0800
parents da12923a789a
children 163f0d9e6382
comparison
equal deleted inserted replaced
689:a05a4a27ff46 690:86c6ebf1de25
36 shape_t *xnjsmb_path_new(njs_runtime_t *rt, const char *d); 36 shape_t *xnjsmb_path_new(njs_runtime_t *rt, const char *d);
37 shape_t *xnjsmb_stext_new(njs_runtime_t *rt, const char *txt, 37 shape_t *xnjsmb_stext_new(njs_runtime_t *rt, const char *txt,
38 float x, float y); 38 float x, float y);
39 shape_t *xnjsmb_image_new(njs_runtime_t *rt, float x, float y, 39 shape_t *xnjsmb_image_new(njs_runtime_t *rt, float x, float y,
40 float w, float h); 40 float w, float h);
41 shape_t *xnjsmb_rect_new(njs_runtime_t *rt, float x, float y,
42 float w, float h,
43 float rx, float ry, const char **err);
41 v8::Handle<v8::Value> export_xnjsmb_auto_path_new(shape_t *sh); 44 v8::Handle<v8::Value> export_xnjsmb_auto_path_new(shape_t *sh);
42 v8::Handle<v8::Value> export_xnjsmb_auto_stext_new(shape_t *sh); 45 v8::Handle<v8::Value> export_xnjsmb_auto_stext_new(shape_t *sh);
43 v8::Handle<v8::Value> export_xnjsmb_auto_image_new(shape_t *sh); 46 v8::Handle<v8::Value> export_xnjsmb_auto_image_new(shape_t *sh);
47 v8::Handle<v8::Value> export_xnjsmb_auto_rect_new(shape_t *sh);
44 48
45 /* From paints.cc */ 49 /* From paints.cc */
46 void xnjsmb_paints_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> rt_temp); 50 void xnjsmb_paints_init_mb_rt_temp(v8::Handle<v8::FunctionTemplate> rt_temp);
47 paint_t *xnjsmb_paint_color_new(njs_runtime_t *rt, 51 paint_t *xnjsmb_paint_color_new(njs_runtime_t *rt,
48 float r, float g, float b, float a, 52 float r, float g, float b, float a,