Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / src / pointer.h
blob2f97d9be5e7825a2e117ecf52588fa5879878a8e
1 /*
2 * ion/pointer.h
4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
6 */
8 #ifndef INCLUDED_POINTER_H
9 #define INCLUDED_POINTER_H
11 #include "common.h"
12 #include "clientwin.h"
13 #include "function.h"
15 INTRSTRUCT(WDragHandler)
17 enum{
18 POINTER_NORMAL,
19 POINTER_MENU,
20 POINTER_MENU_MOVE
23 typedef void WButtonHandler(WThing *thing, XButtonEvent *ev);
24 typedef void WMotionHandler(WThing *thing, XMotionEvent *ev, int dx, int dy);
26 DECLSTRUCT(WDragHandler){
27 WMotionHandler *motion;
28 WButtonHandler *release;
31 extern bool handle_button_press(XButtonEvent *ev);
32 extern bool handle_button_release(XButtonEvent *ev);
33 extern void handle_pointer_motion(XMotionEvent *ev);
34 extern void get_pointer_rootpos(int *xret, int *yret);
35 extern bool find_window_at(Window rootwin, int x, int y,
36 Window *childret);
38 #endif /* INCLUDED_POINTER_H */