4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
8 #ifndef INCLUDED_POINTER_H
9 #define INCLUDED_POINTER_H
12 #include "clientwin.h"
15 INTRSTRUCT(WDragHandler
)
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
,
38 #endif /* INCLUDED_POINTER_H */