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