FreeRDP
xf_event.h
1 
20 #ifndef FREERDP_CLIENT_X11_EVENT_H
21 #define FREERDP_CLIENT_X11_EVENT_H
22 
23 #include "xf_keyboard.h"
24 
25 #include "xf_client.h"
26 #include "xfreerdp.h"
27 
28 const char* x11_event_string(int event);
29 
30 BOOL xf_event_action_script_init(xfContext* xfc);
31 void xf_event_action_script_free(xfContext* xfc);
32 
33 BOOL xf_event_process(freerdp* instance, const XEvent* event);
34 void xf_event_SendClientEvent(xfContext* xfc, xfWindow* window, Atom atom, unsigned int numArgs,
35  ...);
36 
37 void xf_event_adjust_coordinates(xfContext* xfc, int* x, int* y);
38 void xf_adjust_coordinates_to_screen(xfContext* xfc, UINT32* x, UINT32* y);
39 
40 BOOL xf_generic_MotionNotify(xfContext* xfc, int x, int y, int state, Window window, BOOL app);
41 BOOL xf_generic_RawMotionNotify(xfContext* xfc, int x, int y, Window window, BOOL app);
42 BOOL xf_generic_ButtonEvent(xfContext* xfc, int x, int y, int button, Window window, BOOL app,
43  BOOL down);
44 BOOL xf_generic_RawButtonEvent(xfContext* xfc, int button, BOOL app, BOOL down);
45 
46 #endif /* FREERDP_CLIENT_X11_EVENT_H */