comparison nodejs/paints.cc @ 570:49e79253b6d3 Android_Skia

Functions of setting/getting stroke width of a shape
author Thinker K.F. Li <thinker@branda.to>
date Wed, 09 Jun 2010 15:10:29 +0800
parents f87a368e847a
children 5a68e2bcea17
comparison
equal deleted inserted replaced
569:f87a368e847a 570:49e79253b6d3
39 rt_val = GET(self, "mbrt"); 39 rt_val = GET(self, "mbrt");
40 rt = rt_val->ToObject(); 40 rt = rt_val->ToObject();
41 rdman = xnjsmb_rt_rdman(rt); 41 rdman = xnjsmb_rt_rdman(rt);
42 42
43 rdman_paint_fill(rdman, paint, sh); 43 rdman_paint_fill(rdman, paint, sh);
44 44
45 rdman_shape_changed(rdman, sh);
46
45 return Null(); 47 return Null();
46 } 48 }
47 49
48 /*! \brief Stroke a shape with the paint. 50 /*! \brief Stroke a shape with the paint.
49 */ 51 */
72 rt_val = GET(self, "mbrt"); 74 rt_val = GET(self, "mbrt");
73 rt = rt_val->ToObject(); 75 rt = rt_val->ToObject();
74 rdman = xnjsmb_rt_rdman(rt); 76 rdman = xnjsmb_rt_rdman(rt);
75 77
76 rdman_paint_stroke(rdman, paint, sh); 78 rdman_paint_stroke(rdman, paint, sh);
77 79
80 rdman_shape_changed(rdman, sh);
81
78 return Null(); 82 return Null();
79 } 83 }
80 84
81 /*! \brief Constructor of color paint_color_t object for Javascript. 85 /*! \brief Constructor of color paint_color_t object for Javascript.
82 */ 86 */