Simple lua repl for testing
[notion.git] / ioncore / pointer.h
blob4a88f035e8fc0c3e532ae218aecc84a963ea9dc2
1 /*
2 * ion/ioncore/pointer.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
7 */
9 #ifndef ION_IONCORE_POINTER_H
10 #define ION_IONCORE_POINTER_H
12 #include "common.h"
13 #include "region.h"
14 #include "grab.h"
16 typedef void WButtonHandler(WRegion *reg, XButtonEvent *ev);
17 typedef void WMotionHandler(WRegion *reg, XMotionEvent *ev, int dx, int dy);
19 extern bool ioncore_do_handle_buttonpress(XButtonEvent *ev);
20 extern bool ioncore_do_handle_buttonrelease(XButtonEvent *ev);
21 extern void ioncore_do_handle_motionnotify(XMotionEvent *ev);
23 extern XEvent *ioncore_current_pointer_event();
24 extern WRegion *ioncore_pointer_grab_region();
26 extern bool ioncore_set_drag_handlers(WRegion *reg,
27 WMotionHandler *begin,
28 WMotionHandler *motion,
29 WButtonHandler *end,
30 GrabHandler *handler,
31 GrabKilledHandler *killhandler);
33 #endif /* ION_IONCORE_POINTER_H */