1 | /*
|
---|
2 | * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
|
---|
3 | * Copyright 2010 Red Hat, Inc.
|
---|
4 | *
|
---|
5 | * Permission is hereby granted, free of charge, to any person obtaining a
|
---|
6 | * copy of this software and associated documentation files (the "Software"),
|
---|
7 | * to deal in the Software without restriction, including without limitation
|
---|
8 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
9 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
10 | * Software is furnished to do so, subject to the following conditions:
|
---|
11 | *
|
---|
12 | * The above copyright notice and this permission notice (including the next
|
---|
13 | * paragraph) shall be included in all copies or substantial portions of the
|
---|
14 | * Software.
|
---|
15 | *
|
---|
16 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
17 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
18 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
19 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
---|
20 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
21 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
---|
22 | * DEALINGS IN THE SOFTWARE.
|
---|
23 | *
|
---|
24 | * Copyright © 2002 Keith Packard
|
---|
25 | *
|
---|
26 | * Permission to use, copy, modify, distribute, and sell this software and its
|
---|
27 | * documentation for any purpose is hereby granted without fee, provided that
|
---|
28 | * the above copyright notice appear in all copies and that both that
|
---|
29 | * copyright notice and this permission notice appear in supporting
|
---|
30 | * documentation, and that the name of Keith Packard not be used in
|
---|
31 | * advertising or publicity pertaining to distribution of the software without
|
---|
32 | * specific, written prior permission. Keith Packard makes no
|
---|
33 | * representations about the suitability of this software for any purpose. It
|
---|
34 | * is provided "as is" without express or implied warranty.
|
---|
35 | *
|
---|
36 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
37 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
38 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
---|
39 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
40 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
---|
41 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
---|
42 | * PERFORMANCE OF THIS SOFTWARE.
|
---|
43 | */
|
---|
44 |
|
---|
45 | #ifdef HAVE_DIX_CONFIG_H
|
---|
46 | #include <dix-config.h>
|
---|
47 | #endif
|
---|
48 |
|
---|
49 | #ifndef _XFIXESINT_H_
|
---|
50 | #define _XFIXESINT_H_
|
---|
51 |
|
---|
52 | #include <X11/X.h>
|
---|
53 | #include <X11/Xproto.h>
|
---|
54 | #include "misc.h"
|
---|
55 | #include "os.h"
|
---|
56 | #include "dixstruct.h"
|
---|
57 | #include "extnsionst.h"
|
---|
58 | #include <X11/extensions/xfixesproto.h>
|
---|
59 | #include "windowstr.h"
|
---|
60 | #include "selection.h"
|
---|
61 | #include "xfixes.h"
|
---|
62 |
|
---|
63 | extern int XFixesEventBase;
|
---|
64 |
|
---|
65 | typedef struct _XFixesClient {
|
---|
66 | CARD32 major_version;
|
---|
67 | CARD32 minor_version;
|
---|
68 | } XFixesClientRec, *XFixesClientPtr;
|
---|
69 |
|
---|
70 | #define GetXFixesClient(pClient) ((XFixesClientPtr)dixLookupPrivate(&(pClient)->devPrivates, XFixesClientPrivateKey))
|
---|
71 |
|
---|
72 | extern int (*ProcXFixesVector[XFixesNumberRequests])(ClientPtr);
|
---|
73 |
|
---|
74 | /* Initialize extension at server startup time */
|
---|
75 |
|
---|
76 | void
|
---|
77 | XFixesExtensionInit(void);
|
---|
78 |
|
---|
79 | /* Save set */
|
---|
80 | int
|
---|
81 | ProcXFixesChangeSaveSet(ClientPtr client);
|
---|
82 |
|
---|
83 | int
|
---|
84 | SProcXFixesChangeSaveSet(ClientPtr client);
|
---|
85 |
|
---|
86 | /* Selection events */
|
---|
87 | int
|
---|
88 | ProcXFixesSelectSelectionInput (ClientPtr client);
|
---|
89 |
|
---|
90 | int
|
---|
91 | SProcXFixesSelectSelectionInput (ClientPtr client);
|
---|
92 |
|
---|
93 | void
|
---|
94 | SXFixesSelectionNotifyEvent (xXFixesSelectionNotifyEvent *from,
|
---|
95 | xXFixesSelectionNotifyEvent *to);
|
---|
96 | Bool
|
---|
97 | XFixesSelectionInit (void);
|
---|
98 |
|
---|
99 | /* Cursor notification */
|
---|
100 | Bool
|
---|
101 | XFixesCursorInit (void);
|
---|
102 |
|
---|
103 | int
|
---|
104 | ProcXFixesSelectCursorInput (ClientPtr client);
|
---|
105 |
|
---|
106 | int
|
---|
107 | SProcXFixesSelectCursorInput (ClientPtr client);
|
---|
108 |
|
---|
109 | void
|
---|
110 | SXFixesCursorNotifyEvent (xXFixesCursorNotifyEvent *from,
|
---|
111 | xXFixesCursorNotifyEvent *to);
|
---|
112 |
|
---|
113 | int
|
---|
114 | ProcXFixesGetCursorImage (ClientPtr client);
|
---|
115 |
|
---|
116 | int
|
---|
117 | SProcXFixesGetCursorImage (ClientPtr client);
|
---|
118 |
|
---|
119 | /* Cursor names (Version 2) */
|
---|
120 |
|
---|
121 | int
|
---|
122 | ProcXFixesSetCursorName (ClientPtr client);
|
---|
123 |
|
---|
124 | int
|
---|
125 | SProcXFixesSetCursorName (ClientPtr client);
|
---|
126 |
|
---|
127 | int
|
---|
128 | ProcXFixesGetCursorName (ClientPtr client);
|
---|
129 |
|
---|
130 | int
|
---|
131 | SProcXFixesGetCursorName (ClientPtr client);
|
---|
132 |
|
---|
133 | int
|
---|
134 | ProcXFixesGetCursorImageAndName (ClientPtr client);
|
---|
135 |
|
---|
136 | int
|
---|
137 | SProcXFixesGetCursorImageAndName (ClientPtr client);
|
---|
138 |
|
---|
139 | /* Cursor replacement (Version 2) */
|
---|
140 |
|
---|
141 | int
|
---|
142 | ProcXFixesChangeCursor (ClientPtr client);
|
---|
143 |
|
---|
144 | int
|
---|
145 | SProcXFixesChangeCursor (ClientPtr client);
|
---|
146 |
|
---|
147 | int
|
---|
148 | ProcXFixesChangeCursorByName (ClientPtr client);
|
---|
149 |
|
---|
150 | int
|
---|
151 | SProcXFixesChangeCursorByName (ClientPtr client);
|
---|
152 |
|
---|
153 | /* Region objects (Version 2* */
|
---|
154 | Bool
|
---|
155 | XFixesRegionInit (void);
|
---|
156 |
|
---|
157 | int
|
---|
158 | ProcXFixesCreateRegion (ClientPtr client);
|
---|
159 |
|
---|
160 | int
|
---|
161 | SProcXFixesCreateRegion (ClientPtr client);
|
---|
162 |
|
---|
163 | int
|
---|
164 | ProcXFixesCreateRegionFromBitmap (ClientPtr client);
|
---|
165 |
|
---|
166 | int
|
---|
167 | SProcXFixesCreateRegionFromBitmap (ClientPtr client);
|
---|
168 |
|
---|
169 | int
|
---|
170 | ProcXFixesCreateRegionFromWindow (ClientPtr client);
|
---|
171 |
|
---|
172 | int
|
---|
173 | SProcXFixesCreateRegionFromWindow (ClientPtr client);
|
---|
174 |
|
---|
175 | int
|
---|
176 | ProcXFixesCreateRegionFromGC (ClientPtr client);
|
---|
177 |
|
---|
178 | int
|
---|
179 | SProcXFixesCreateRegionFromGC (ClientPtr client);
|
---|
180 |
|
---|
181 | int
|
---|
182 | ProcXFixesCreateRegionFromPicture (ClientPtr client);
|
---|
183 |
|
---|
184 | int
|
---|
185 | SProcXFixesCreateRegionFromPicture (ClientPtr client);
|
---|
186 |
|
---|
187 | int
|
---|
188 | ProcXFixesDestroyRegion (ClientPtr client);
|
---|
189 |
|
---|
190 | int
|
---|
191 | SProcXFixesDestroyRegion (ClientPtr client);
|
---|
192 |
|
---|
193 | int
|
---|
194 | ProcXFixesSetRegion (ClientPtr client);
|
---|
195 |
|
---|
196 | int
|
---|
197 | SProcXFixesSetRegion (ClientPtr client);
|
---|
198 |
|
---|
199 | int
|
---|
200 | ProcXFixesCopyRegion (ClientPtr client);
|
---|
201 |
|
---|
202 | int
|
---|
203 | SProcXFixesCopyRegion (ClientPtr client);
|
---|
204 |
|
---|
205 | int
|
---|
206 | ProcXFixesCombineRegion (ClientPtr client);
|
---|
207 |
|
---|
208 | int
|
---|
209 | SProcXFixesCombineRegion (ClientPtr client);
|
---|
210 |
|
---|
211 | int
|
---|
212 | ProcXFixesInvertRegion (ClientPtr client);
|
---|
213 |
|
---|
214 | int
|
---|
215 | SProcXFixesInvertRegion (ClientPtr client);
|
---|
216 |
|
---|
217 | int
|
---|
218 | ProcXFixesTranslateRegion (ClientPtr client);
|
---|
219 |
|
---|
220 | int
|
---|
221 | SProcXFixesTranslateRegion (ClientPtr client);
|
---|
222 |
|
---|
223 | int
|
---|
224 | ProcXFixesRegionExtents (ClientPtr client);
|
---|
225 |
|
---|
226 | int
|
---|
227 | SProcXFixesRegionExtents (ClientPtr client);
|
---|
228 |
|
---|
229 | int
|
---|
230 | ProcXFixesFetchRegion (ClientPtr client);
|
---|
231 |
|
---|
232 | int
|
---|
233 | SProcXFixesFetchRegion (ClientPtr client);
|
---|
234 |
|
---|
235 | int
|
---|
236 | ProcXFixesSetGCClipRegion (ClientPtr client);
|
---|
237 |
|
---|
238 | int
|
---|
239 | SProcXFixesSetGCClipRegion (ClientPtr client);
|
---|
240 |
|
---|
241 | int
|
---|
242 | ProcXFixesSetWindowShapeRegion (ClientPtr client);
|
---|
243 |
|
---|
244 | int
|
---|
245 | SProcXFixesSetWindowShapeRegion (ClientPtr client);
|
---|
246 |
|
---|
247 | int
|
---|
248 | ProcXFixesSetPictureClipRegion (ClientPtr client);
|
---|
249 |
|
---|
250 | int
|
---|
251 | SProcXFixesSetPictureClipRegion (ClientPtr client);
|
---|
252 |
|
---|
253 | int
|
---|
254 | ProcXFixesExpandRegion (ClientPtr client);
|
---|
255 |
|
---|
256 | int
|
---|
257 | SProcXFixesExpandRegion (ClientPtr client);
|
---|
258 |
|
---|
259 | int
|
---|
260 | PanoramiXFixesSetGCClipRegion (ClientPtr client);
|
---|
261 |
|
---|
262 | int
|
---|
263 | PanoramiXFixesSetWindowShapeRegion (ClientPtr client);
|
---|
264 |
|
---|
265 | int
|
---|
266 | PanoramiXFixesSetPictureClipRegion (ClientPtr client);
|
---|
267 |
|
---|
268 | /* Cursor Visibility (Version 4) */
|
---|
269 |
|
---|
270 | int
|
---|
271 | ProcXFixesHideCursor (ClientPtr client);
|
---|
272 |
|
---|
273 | int
|
---|
274 | SProcXFixesHideCursor (ClientPtr client);
|
---|
275 |
|
---|
276 | int
|
---|
277 | ProcXFixesShowCursor (ClientPtr client);
|
---|
278 |
|
---|
279 | int
|
---|
280 | SProcXFixesShowCursor (ClientPtr client);
|
---|
281 |
|
---|
282 | /* Version 5 */
|
---|
283 |
|
---|
284 | int
|
---|
285 | ProcXFixesCreatePointerBarrier (ClientPtr client);
|
---|
286 |
|
---|
287 | int
|
---|
288 | SProcXFixesCreatePointerBarrier (ClientPtr client);
|
---|
289 |
|
---|
290 | int
|
---|
291 | ProcXFixesDestroyPointerBarrier (ClientPtr client);
|
---|
292 |
|
---|
293 | int
|
---|
294 | SProcXFixesDestroyPointerBarrier (ClientPtr client);
|
---|
295 |
|
---|
296 | /* Xinerama */
|
---|
297 | extern int (*PanoramiXSaveXFixesVector[XFixesNumberRequests])(ClientPtr);
|
---|
298 | void PanoramiXFixesInit (void);
|
---|
299 | void PanoramiXFixesReset (void);
|
---|
300 |
|
---|
301 | #endif /* _XFIXESINT_H_ */
|
---|