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 "Software"),
|
---|
6 | * to deal in the Software without restriction, including without limitation
|
---|
7 | * the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
---|
8 | * and/or sell copies of the Software, and to permit persons to whom the
|
---|
9 | * Software is furnished to do so, subject to the following conditions:
|
---|
10 | *
|
---|
11 | * The above copyright notice and this permission notice (including the next
|
---|
12 | * paragraph) shall be included in all copies or substantial portions of the
|
---|
13 | * Software.
|
---|
14 | *
|
---|
15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
---|
16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
---|
17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
---|
18 | * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
---|
19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
---|
20 | * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
---|
21 | * DEALINGS IN THE SOFTWARE.
|
---|
22 | *
|
---|
23 | * Copyright © 2002 Keith Packard
|
---|
24 | *
|
---|
25 | * Permission to use, copy, modify, distribute, and sell this software and its
|
---|
26 | * documentation for any purpose is hereby granted without fee, provided that
|
---|
27 | * the above copyright notice appear in all copies and that both that
|
---|
28 | * copyright notice and this permission notice appear in supporting
|
---|
29 | * documentation, and that the name of Keith Packard not be used in
|
---|
30 | * advertising or publicity pertaining to distribution of the software without
|
---|
31 | * specific, written prior permission. Keith Packard makes no
|
---|
32 | * representations about the suitability of this software for any purpose. It
|
---|
33 | * is provided "as is" without express or implied warranty.
|
---|
34 | *
|
---|
35 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
36 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
37 | * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
|
---|
38 | * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
|
---|
39 | * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
---|
40 | * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
---|
41 | * PERFORMANCE OF THIS SOFTWARE.
|
---|
42 | */
|
---|
43 |
|
---|
44 | #ifdef HAVE_DIX_CONFIG_H
|
---|
45 | #include <dix-config.h>
|
---|
46 | #endif
|
---|
47 |
|
---|
48 | #ifndef _XFIXESINT_H_
|
---|
49 | #define _XFIXESINT_H_
|
---|
50 |
|
---|
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_ */
|
---|