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