FreeRDP
Loading...
Searching...
No Matches
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
28const char* x11_event_string(int event);
29
30BOOL xf_event_action_script_init(xfContext* xfc);
31void xf_event_action_script_free(xfContext* xfc);
32
33BOOL xf_event_process(freerdp* instance, const XEvent* event);
34void xf_event_SendClientEvent(xfContext* xfc, xfWindow* window, Atom atom, unsigned int numArgs,
35 ...);
36
37void xf_event_adjust_coordinates(xfContext* xfc, int* x, int* y);
38void xf_adjust_coordinates_to_screen(xfContext* xfc, UINT32* x, UINT32* y);
39
40#define xf_generic_MotionNotify(xfc, x, y, window, app) \
41 xf_generic_MotionNotify_((xfc), (x), (y), (window), (app), __FILE__, __func__, __LINE__)
42BOOL xf_generic_MotionNotify_(xfContext* xfc, int x, int y, Window window, BOOL app,
43 const char* file, const char* fkt, size_t line);
44
45#define xf_generic_RawMotionNotify(xfc, x, y, window, app) \
46 xf_generic_RawMotionNotify_((xfc), (x), (y), (window), (app), __FILE__, __func__, __LINE__)
47BOOL xf_generic_RawMotionNotify_(xfContext* xfc, int x, int y, Window window, BOOL app,
48 const char* file, const char* fkt, size_t line);
49
50#define xf_generic_ButtonEvent(xfc, x, y, button, window, app, down) \
51 xf_generic_ButtonEvent_((xfc), (x), (y), (button), (window), (app), (down), __FILE__, \
52 __func__, __LINE__)
53BOOL xf_generic_ButtonEvent_(xfContext* xfc, int x, int y, int button, Window window, BOOL app,
54 BOOL down, const char* file, const char* fkt, size_t line);
55
56#define xf_generic_RawButtonEvent(xfc, button, app, down) \
57 xf_generic_RawButtonEvent_((xfc), (button), (app), (down), __FILE__, __func__, __LINE__)
58BOOL xf_generic_RawButtonEvent_(xfContext* xfc, int button, BOOL app, BOOL down, const char* file,
59 const char* fkt, size_t line);
60
61#endif /* FREERDP_CLIENT_X11_EVENT_H */