Mercurial > MadButterfly
comparison src/mb_types.h @ 77:a6763f080da5
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 20 Aug 2008 00:32:11 +0800 |
parents | 9ab15ebc9061 |
children | 13fdf205047b |
comparison
equal
deleted
inserted
replaced
76:8706356a61b4 | 77:a6763f080da5 |
---|---|
147 #define sh_detach_geo(sh) \ | 147 #define sh_detach_geo(sh) \ |
148 do { \ | 148 do { \ |
149 (sh)->geo->shape = NULL; \ | 149 (sh)->geo->shape = NULL; \ |
150 (sh)->geo = NULL; \ | 150 (sh)->geo = NULL; \ |
151 } while(0) | 151 } while(0) |
152 #define sh_get_geo(sh) ((sh)->geo) | |
153 #define sh_get_mouse_event_subject(sh) ((sh)->geo->mouse_event) | |
152 extern void sh_attach_coord(shape_t *sh, coord_t *coord); | 154 extern void sh_attach_coord(shape_t *sh, coord_t *coord); |
153 extern void sh_detach_coord(shape_t *sh); | 155 extern void sh_detach_coord(shape_t *sh); |
154 | 156 |
155 #endif /* __MB_TYPES_H_ */ | 157 #endif /* __MB_TYPES_H_ */ |