comparison include/mb_types.h @ 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 f42419c08a65
children b42d69ab8857 d2f2ed27b84d
comparison
equal deleted inserted replaced
569:f87a368e847a 570:49e79253b6d3
398 #define sh_get_coord(sh) ((sh)->coord) 398 #define sh_get_coord(sh) ((sh)->coord)
399 #define sh_get_aggr_matrix(sh) (coord_get_aggr_matrix(sh_get_coord(sh))) 399 #define sh_get_aggr_matrix(sh) (coord_get_aggr_matrix(sh_get_coord(sh)))
400 #define sh_get_fill(sh) ((sh)->fill) 400 #define sh_get_fill(sh) ((sh)->fill)
401 #define sh_get_stroke(sh) ((sh)->stroke) 401 #define sh_get_stroke(sh) ((sh)->stroke)
402 #define sh_set_stroke_width(sh, v) do { (sh)->stroke_width = (v); } while(0) 402 #define sh_set_stroke_width(sh, v) do { (sh)->stroke_width = (v); } while(0)
403 #define sh_get_stroke_width(sh) (sh)->stroke_width
403 404
404 405
405 /*! \brief A sprite is a set of graphics that being an object in animation. 406 /*! \brief A sprite is a set of graphics that being an object in animation.
406 * 407 *
407 * A sprite include graphics comprise an object. For example, a tank, in 408 * A sprite include graphics comprise an object. For example, a tank, in