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