20 #ifndef FREERDP_EVENT_H
21 #define FREERDP_EVENT_H
23 #include <freerdp/api.h>
25 #include <winpr/collections.h>
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
38 DEFINE_EVENT_BEGIN(WindowStateChange)
40 DEFINE_EVENT_END(WindowStateChange)
42 DEFINE_EVENT_BEGIN(ResizeWindow)
45 DEFINE_EVENT_END(ResizeWindow)
47 DEFINE_EVENT_BEGIN(PanningChange)
50 DEFINE_EVENT_END(PanningChange)
52 DEFINE_EVENT_BEGIN(ZoomingChange)
55 DEFINE_EVENT_END(ZoomingChange)
57 DEFINE_EVENT_BEGIN(LocalResizeWindow)
60 DEFINE_EVENT_END(LocalResizeWindow)
62 DEFINE_EVENT_BEGIN(EmbedWindow)
65 DEFINE_EVENT_END(EmbedWindow)
67 DEFINE_EVENT_BEGIN(ErrorInfo)
69 DEFINE_EVENT_END(ErrorInfo)
71 DEFINE_EVENT_BEGIN(Activated)
73 DEFINE_EVENT_END(Activated)
75 DEFINE_EVENT_BEGIN(ConnectionStateChange)
78 DEFINE_EVENT_END(ConnectionStateChange)
80 DEFINE_EVENT_BEGIN(Terminate)
82 DEFINE_EVENT_END(Terminate)
84 DEFINE_EVENT_BEGIN(ConnectionResult)
86 DEFINE_EVENT_END(ConnectionResult)
88 DEFINE_EVENT_BEGIN(ChannelConnected)
91 DEFINE_EVENT_END(ChannelConnected)
93 DEFINE_EVENT_BEGIN(ChannelDisconnected)
96 DEFINE_EVENT_END(ChannelDisconnected)
98 DEFINE_EVENT_BEGIN(ChannelAttached)
101 DEFINE_EVENT_END(ChannelAttached)
103 DEFINE_EVENT_BEGIN(ChannelDetached)
106 DEFINE_EVENT_END(ChannelDetached)
108 DEFINE_EVENT_BEGIN(MouseEvent)
112 DEFINE_EVENT_END(MouseEvent)
114 DEFINE_EVENT_BEGIN(MouseEventEx)
118 DEFINE_EVENT_END(MouseEventEx)
120 DEFINE_EVENT_BEGIN(Timer)
122 DEFINE_EVENT_END(Timer)
124 DEFINE_EVENT_BEGIN(GraphicsReset)
127 DEFINE_EVENT_END(GraphicsReset)