Mercurial > MadButterfly
diff src/mb_types.h @ 81:13fdf205047b
Hide shapes and groups
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Thu, 21 Aug 2008 13:52:23 +0800 |
parents | a6763f080da5 |
children | ea758bb3bbe2 |
line wrap: on
line diff
--- a/src/mb_types.h Thu Aug 21 00:27:36 2008 +0800 +++ b/src/mb_types.h Thu Aug 21 13:52:23 2008 +0800 @@ -151,6 +151,8 @@ } while(0) #define sh_get_geo(sh) ((sh)->geo) #define sh_get_mouse_event_subject(sh) ((sh)->geo->mouse_event) +#define sh_hide(sh) do { (sh)->geo->flags |= GEF_HIDDEN; } while(0) +#define sh_show(sh) do { (sh)->geo->flags &= ~GEF_HIDDEN; } while(0) extern void sh_attach_coord(shape_t *sh, coord_t *coord); extern void sh_detach_coord(shape_t *sh);