FreeRDP
include/freerdp/event.h
1 
20 #ifndef FREERDP_EVENT_H
21 #define FREERDP_EVENT_H
22 
23 #include <freerdp/api.h>
24 
25 #include <winpr/collections.h>
26 
27 #ifdef __cplusplus
28 extern "C"
29 {
30 #endif
31 
32 #define FREERDP_WINDOW_STATE_NORMAL 0
33 #define FREERDP_WINDOW_STATE_MINIMIZED 1
34 #define FREERDP_WINDOW_STATE_MAXIMIZED 2
35 #define FREERDP_WINDOW_STATE_FULLSCREEN 3
36 #define FREERDP_WINDOW_STATE_ACTIVE 4
37 
38  DEFINE_EVENT_BEGIN(WindowStateChange)
39  int state;
40  DEFINE_EVENT_END(WindowStateChange)
41 
42  DEFINE_EVENT_BEGIN(ResizeWindow)
43  int width;
44  int height;
45  DEFINE_EVENT_END(ResizeWindow)
46 
47  DEFINE_EVENT_BEGIN(PanningChange)
48  int dx;
49  int dy;
50  DEFINE_EVENT_END(PanningChange)
51 
52  DEFINE_EVENT_BEGIN(ZoomingChange)
53  int dx;
54  int dy;
55  DEFINE_EVENT_END(ZoomingChange)
56 
57  DEFINE_EVENT_BEGIN(LocalResizeWindow)
58  int width;
59  int height;
60  DEFINE_EVENT_END(LocalResizeWindow)
61 
62  DEFINE_EVENT_BEGIN(EmbedWindow)
63  BOOL embed;
64  void* handle;
65  DEFINE_EVENT_END(EmbedWindow)
66 
67  DEFINE_EVENT_BEGIN(ErrorInfo)
68  UINT32 code;
69  DEFINE_EVENT_END(ErrorInfo)
70 
71  DEFINE_EVENT_BEGIN(Activated)
72  BOOL firstActivation;
73  DEFINE_EVENT_END(Activated)
74 
75  DEFINE_EVENT_BEGIN(ConnectionStateChange)
76  int state;
77  BOOL active;
78  DEFINE_EVENT_END(ConnectionStateChange)
79 
80  DEFINE_EVENT_BEGIN(Terminate)
81  int code;
82  DEFINE_EVENT_END(Terminate)
83 
84  DEFINE_EVENT_BEGIN(ConnectionResult)
85  int result;
86  DEFINE_EVENT_END(ConnectionResult)
87 
88  DEFINE_EVENT_BEGIN(ChannelConnected)
89  const char* name;
90  void* pInterface;
91  DEFINE_EVENT_END(ChannelConnected)
92 
93  DEFINE_EVENT_BEGIN(ChannelDisconnected)
94  const char* name;
95  void* pInterface;
96  DEFINE_EVENT_END(ChannelDisconnected)
97 
98  DEFINE_EVENT_BEGIN(ChannelAttached)
99  const char* name;
100  void* pInterface;
101  DEFINE_EVENT_END(ChannelAttached)
102 
103  DEFINE_EVENT_BEGIN(ChannelDetached)
104  const char* name;
105  void* pInterface;
106  DEFINE_EVENT_END(ChannelDetached)
107 
108  DEFINE_EVENT_BEGIN(MouseEvent)
109  UINT16 flags;
110  UINT16 x;
111  UINT16 y;
112  DEFINE_EVENT_END(MouseEvent)
113 
114  DEFINE_EVENT_BEGIN(MouseEventEx)
115  UINT16 flags;
116  UINT16 x;
117  UINT16 y;
118  DEFINE_EVENT_END(MouseEventEx)
119 
120  DEFINE_EVENT_BEGIN(Timer)
121  UINT64 now;
122  DEFINE_EVENT_END(Timer)
123 
124  DEFINE_EVENT_BEGIN(GraphicsReset)
125  UINT32 width;
126  UINT32 height;
127  DEFINE_EVENT_END(GraphicsReset)
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 #endif /* FREERDP_EVENT_H */