2 * ion/ioncore/pointer.h
4 * Copyright (c) Tuomo Valkonen 1999-2009.
6 * See the included file LICENSE for details.
9 #ifndef ION_IONCORE_POINTER_H
10 #define ION_IONCORE_POINTER_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
,
31 GrabKilledHandler
*killhandler
);
33 #endif /* ION_IONCORE_POINTER_H */