comparison nodejs/mbfly_njs.h @ 562:1b6402f07cd4 Android_Skia

Make root coord availabe for Javascript code
author Thinker K.F. Li <thinker@branda.to>
date Mon, 07 Jun 2010 14:45:01 +0800
parents a3c13c2a4792
children c0bc60448913
comparison
equal deleted inserted replaced
561:a3c13c2a4792 562:1b6402f07cd4
16 #define WRAP(o, v) (o)->SetInternalField(0, v8::External::Wrap(v)) 16 #define WRAP(o, v) (o)->SetInternalField(0, v8::External::Wrap(v))
17 #define SET(o, n, v) (o)->Set(v8::String::New(n), v) 17 #define SET(o, n, v) (o)->Set(v8::String::New(n), v)
18 #define GET(o, n) (o)->Get(v8::String::New(n)) 18 #define GET(o, n) (o)->Get(v8::String::New(n))
19 19
20 redraw_man_t *xnjsmb_rt_rdman(v8::Handle<v8::Object> mbrt); 20 redraw_man_t *xnjsmb_rt_rdman(v8::Handle<v8::Object> mbrt);
21
22 /* From coord.cc */
21 v8::Handle<v8::Value> xnjsmb_coord_new(const v8::Arguments &args); 23 v8::Handle<v8::Value> xnjsmb_coord_new(const v8::Arguments &args);
24 void xnjsmb_coord_mkroot(v8::Handle<v8::Object> js_rt);
22 25
23 #endif /* __MBFLY_NJS_H_ */ 26 #endif /* __MBFLY_NJS_H_ */