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);
34
35WINPR_ATTR_NODISCARD
36BOOL xf_event_update_screen(freerdp* instance);
37
38void xf_event_SendClientEvent(xfContext* xfc, xfWindow* window, Atom atom, unsigned int numArgs,
39 ...);
40
41void xf_event_adjust_coordinates(xfContext* xfc, int* x, int* y);
42void xf_adjust_coordinates_to_screen(xfContext* xfc, UINT32* x, UINT32* y);
43
44#define xf_generic_MotionNotify(xfc, x, y, window, app) \
45 xf_generic_MotionNotify_((xfc), (x), (y), (window), (app), __FILE__, __func__, __LINE__)
46BOOL xf_generic_MotionNotify_(xfContext* xfc, int x, int y, Window window, BOOL app,
47 const char* file, const char* fkt, size_t line);
48
49#define xf_generic_RawMotionNotify(xfc, x, y, window, app) \
50 xf_generic_RawMotionNotify_((xfc), (x), (y), (window), (app), __FILE__, __func__, __LINE__)
51BOOL xf_generic_RawMotionNotify_(xfContext* xfc, int x, int y, Window window, BOOL app,
52 const char* file, const char* fkt, size_t line);
53
54#define xf_generic_ButtonEvent(xfc, x, y, button, window, app, down) \
55 xf_generic_ButtonEvent_((xfc), (x), (y), (button), (window), (app), (down), __FILE__, \
56 __func__, __LINE__)
57BOOL xf_generic_ButtonEvent_(xfContext* xfc, int x, int y, int button, Window window, BOOL app,
58 BOOL down, const char* file, const char* fkt, size_t line);
59
60#define xf_generic_RawButtonEvent(xfc, button, app, down) \
61 xf_generic_RawButtonEvent_((xfc), (button), (app), (down), __FILE__, __func__, __LINE__)
62BOOL xf_generic_RawButtonEvent_(xfContext* xfc, int button, BOOL app, BOOL down, const char* file,
63 const char* fkt, size_t line);
64
65#endif /* FREERDP_CLIENT_X11_EVENT_H */