]> git.decadent.org.uk Git - ion3.git/blob - ioncore/pointer.h
Imported Upstream version 20090110
[ion3.git] / ioncore / pointer.h
1 /*
2  * ion/ioncore/pointer.h
3  *
4  * Copyright (c) Tuomo Valkonen 1999-2009. 
5  *
6  * See the included file LICENSE for details.
7  */
8
9 #ifndef ION_IONCORE_POINTER_H
10 #define ION_IONCORE_POINTER_H
11
12 #include "common.h"
13 #include "region.h"
14 #include "grab.h"
15
16 typedef void WButtonHandler(WRegion *reg, XButtonEvent *ev);
17 typedef void WMotionHandler(WRegion *reg, XMotionEvent *ev, int dx, int dy);
18
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);
22
23 extern XEvent *ioncore_current_pointer_event();
24 extern WRegion *ioncore_pointer_grab_region();
25
26 extern bool ioncore_set_drag_handlers(WRegion *reg, 
27                                       WMotionHandler *begin,
28                                       WMotionHandler *motion, 
29                                       WButtonHandler *end,
30                                       GrabHandler *handler,
31                                       GrabKilledHandler *killhandler);
32
33 #endif /* ION_IONCORE_POINTER_H */