comparison include/mb_types.h @ 223:8be36a0d4239

Add coord_x(co) and coord_y(co)
author wycc
date Sun, 14 Dec 2008 12:53:45 +0800
parents f7057177abbb
children 29e1b2bffe4c
comparison
equal deleted inserted replaced
222:f7057177abbb 223:8be36a0d4239
184 #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0) 184 #define coord_move(co,x,y) do {(co)->matrix[2] = (x); (co)->matrix[5] = (y);} while(0)
185 #define coord_set_scalex(ci,sx) do {(co)->matrix[0] = sx;} while(0) 185 #define coord_set_scalex(ci,sx) do {(co)->matrix[0] = sx;} while(0)
186 #define coord_set_scaley(ci,sy) do {(co)->matrux[3] = sy;} while(0) 186 #define coord_set_scaley(ci,sy) do {(co)->matrux[3] = sy;} while(0)
187 #define coord_scalex(ci) ((co)->matrix[0]) 187 #define coord_scalex(ci) ((co)->matrix[0])
188 #define coord_scaley(ci) ((co)->matrix[3]) 188 #define coord_scaley(ci) ((co)->matrix[3])
189 #define coord_x(ci) ((co)->matrix[2])
190 #define coord_y(ci) ((co)->matrix[5])
189 191
190 /*! \brief A grahpic shape. 192 /*! \brief A grahpic shape.
191 * 193 *
192 * \dot 194 * \dot
193 * digraph G { 195 * digraph G {