Mercurial > MadButterfly
diff src/mb_types.h @ 30:e06a4a667ce2
Accept mouse/pointer event and hint the shape that the pointer is over.
- add find_shape_at_pos()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 05 Aug 2008 12:40:45 +0800 |
parents | 604bc90d509d |
children | da770188a44d |
line wrap: on
line diff
--- a/src/mb_types.h Mon Aug 04 21:13:32 2008 +0800 +++ b/src/mb_types.h Tue Aug 05 12:40:45 2008 +0800 @@ -52,8 +52,8 @@ #define geo_set_shape(g, sh) do {(g)->shape = sh;} while(0) #define _geo_is_in(a, s, w) ((a) >= (s) && (a) < ((s) + (w))) #define geo_pos_is_in(g, _x, _y) \ - (_geo_is_in(_x, (g)->cur_area.x, (g)->cur_area.w) && \ - _geo_is_in(_y, (g)->cur_area.y, (g)->cur_area.h)) + (_geo_is_in(_x, (g)->cur_area->x, (g)->cur_area->w) && \ + _geo_is_in(_y, (g)->cur_area->y, (g)->cur_area->h)) /*! \brief A coordination system.