~ubuntu-branches/ubuntu/vivid/freerdp/vivid

« back to all changes in this revision

Viewing changes to include/freerdp/window.h

  • Committer: Package Import Robot
  • Author(s): Iain Lane
  • Date: 2014-11-11 12:20:50 UTC
  • mfrom: (1.2.5)
  • mto: This revision was merged to the branch mainline in revision 24.
  • Revision ID: package-import@ubuntu.com-20141111122050-7z628f4ab38qxad5
Tags: upstream-1.1.0~git20140921.1.440916e+dfsg1
ImportĀ upstreamĀ versionĀ 1.1.0~git20140921.1.440916e+dfsg1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/**
2
 
 * FreeRDP: A Remote Desktop Protocol Client
 
2
 * FreeRDP: A Remote Desktop Protocol Implementation
3
3
 * Window Alternate Secondary Drawing Orders Interface API
4
4
 *
5
5
 * Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
17
17
 * limitations under the License.
18
18
 */
19
19
 
20
 
#ifndef __UPDATE_WINDOW_H
21
 
#define __UPDATE_WINDOW_H
 
20
#ifndef FREERDP_UPDATE_WINDOW_H
 
21
#define FREERDP_UPDATE_WINDOW_H
22
22
 
23
23
#include <freerdp/types.h>
24
24
 
25
 
#ifdef _WIN32
26
 
#include <windows.h>
27
 
#endif
28
 
 
29
25
/* Window Order Header Flags */
30
26
#define WINDOW_ORDER_TYPE_WINDOW                        0x01000000
31
27
#define WINDOW_ORDER_TYPE_NOTIFY                        0x02000000
124
120
#define WS_EX_WINDOWEDGE                0x00000100
125
121
#endif
126
122
 
 
123
/**
 
124
 * This is a custom extended window style used by XRDP
 
125
 * instructing the client to use local window decorations
 
126
 */
 
127
 
 
128
#define WS_EX_DECORATIONS               0x40000000
 
129
 
127
130
struct _WINDOW_ORDER_INFO
128
131
{
129
 
        uint32 windowId;
130
 
        uint32 fieldFlags;
131
 
        uint32 notifyIconId;
 
132
        UINT32 windowId;
 
133
        UINT32 fieldFlags;
 
134
        UINT32 notifyIconId;
132
135
};
133
136
typedef struct _WINDOW_ORDER_INFO WINDOW_ORDER_INFO;
134
137
 
135
138
struct _ICON_INFO
136
139
{
137
 
        uint32 cacheEntry;
138
 
        uint32 cacheId;
139
 
        uint32 bpp;
140
 
        uint32 width;
141
 
        uint32 height;
142
 
        uint32 cbColorTable;
143
 
        uint32 cbBitsMask;
144
 
        uint32 cbBitsColor;
145
 
        uint8* bitsMask;
146
 
        uint8* colorTable;
147
 
        uint8* bitsColor;
 
140
        UINT32 cacheEntry;
 
141
        UINT32 cacheId;
 
142
        UINT32 bpp;
 
143
        UINT32 width;
 
144
        UINT32 height;
 
145
        UINT32 cbColorTable;
 
146
        UINT32 cbBitsMask;
 
147
        UINT32 cbBitsColor;
 
148
        BYTE* bitsMask;
 
149
        BYTE* colorTable;
 
150
        BYTE* bitsColor;
148
151
};
149
152
typedef struct _ICON_INFO ICON_INFO;
150
153
 
151
154
struct _CACHED_ICON_INFO
152
155
{
153
 
        uint32 cacheEntry;
154
 
        uint32 cacheId;
 
156
        UINT32 cacheEntry;
 
157
        UINT32 cacheId;
155
158
};
156
159
typedef struct _CACHED_ICON_INFO CACHED_ICON_INFO;
157
160
 
158
161
struct _NOTIFY_ICON_INFOTIP
159
162
{
160
 
        uint32 timeout;
161
 
        uint32 flags;
162
 
        UNICODE_STRING text;
163
 
        UNICODE_STRING title;
 
163
        UINT32 timeout;
 
164
        UINT32 flags;
 
165
        RAIL_UNICODE_STRING text;
 
166
        RAIL_UNICODE_STRING title;
164
167
};
165
168
typedef struct _NOTIFY_ICON_INFOTIP NOTIFY_ICON_INFOTIP;
166
169
 
167
170
struct _WINDOW_STATE_ORDER
168
171
{
169
 
        uint32 ownerWindowId;
170
 
        uint32 style;
171
 
        uint32 extendedStyle;
172
 
        uint32 showState;
173
 
        UNICODE_STRING titleInfo;
174
 
        uint32 clientOffsetX;
175
 
        uint32 clientOffsetY;
176
 
        uint32 clientAreaWidth;
177
 
        uint32 clientAreaHeight;
178
 
        uint32 RPContent;
179
 
        uint32 rootParentHandle;
180
 
        uint32 windowOffsetX;
181
 
        uint32 windowOffsetY;
182
 
        uint32 windowClientDeltaX;
183
 
        uint32 windowClientDeltaY;
184
 
        uint32 windowWidth;
185
 
        uint32 windowHeight;
186
 
        uint32 numWindowRects;
 
172
        UINT32 ownerWindowId;
 
173
        UINT32 style;
 
174
        UINT32 extendedStyle;
 
175
        UINT32 showState;
 
176
        RAIL_UNICODE_STRING titleInfo;
 
177
        UINT32 clientOffsetX;
 
178
        UINT32 clientOffsetY;
 
179
        UINT32 clientAreaWidth;
 
180
        UINT32 clientAreaHeight;
 
181
        UINT32 RPContent;
 
182
        UINT32 rootParentHandle;
 
183
        UINT32 windowOffsetX;
 
184
        UINT32 windowOffsetY;
 
185
        UINT32 windowClientDeltaX;
 
186
        UINT32 windowClientDeltaY;
 
187
        UINT32 windowWidth;
 
188
        UINT32 windowHeight;
 
189
        UINT32 numWindowRects;
187
190
        RECTANGLE_16* windowRects;
188
 
        uint32 visibleOffsetX;
189
 
        uint32 visibleOffsetY;
190
 
        uint32 numVisibilityRects;
 
191
        UINT32 visibleOffsetX;
 
192
        UINT32 visibleOffsetY;
 
193
        UINT32 numVisibilityRects;
191
194
        RECTANGLE_16* visibilityRects;
192
195
};
193
196
typedef struct _WINDOW_STATE_ORDER WINDOW_STATE_ORDER;
206
209
 
207
210
struct _NOTIFY_ICON_STATE_ORDER
208
211
{
209
 
        uint32 version;
210
 
        UNICODE_STRING toolTip;
 
212
        UINT32 version;
 
213
        RAIL_UNICODE_STRING toolTip;
211
214
        NOTIFY_ICON_INFOTIP infoTip;
212
 
        uint32 state;
 
215
        UINT32 state;
213
216
        ICON_INFO icon;
214
217
        CACHED_ICON_INFO cachedIcon;
215
218
};
217
220
 
218
221
struct _MONITORED_DESKTOP_ORDER
219
222
{
220
 
        uint32 activeWindowId;
221
 
        uint32 numWindowIds;
222
 
        uint32* windowIds;
 
223
        UINT32 activeWindowId;
 
224
        UINT32 numWindowIds;
 
225
        UINT32* windowIds;
223
226
};
224
227
typedef struct _MONITORED_DESKTOP_ORDER MONITORED_DESKTOP_ORDER;
225
228
 
237
240
struct rdp_window_update
238
241
{
239
242
        rdpContext* context; /* 0 */
240
 
        uint32 paddingA[16 - 1]; /* 1 */
 
243
        UINT32 paddingA[16 - 1]; /* 1 */
241
244
 
242
245
        pWindowCreate WindowCreate; /* 16 */
243
246
        pWindowUpdate WindowUpdate; /* 17 */
249
252
        pNotifyIconDelete NotifyIconDelete; /* 23 */
250
253
        pMonitoredDesktop MonitoredDesktop; /* 24 */
251
254
        pNonMonitoredDesktop NonMonitoredDesktop; /* 25 */
252
 
        uint32 paddingB[32 - 26]; /* 26 */
 
255
        UINT32 paddingB[32 - 26]; /* 26 */
253
256
 
254
257
        /* internal */
255
258
 
262
265
};
263
266
typedef struct rdp_window_update rdpWindowUpdate;
264
267
 
265
 
#endif /* __UPDATE_WINDOW_H */
 
268
#endif /* FREERDP_UPDATE_WINDOW_H */