1 | /*
|
---|
2 | * $Id: xfixesint.h,v 1.7 2005/07/03 08:53:54 daniels Exp $
|
---|
3 | *
|
---|
4 | * Copyright © 2002 Keith Packard
|
---|
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 Keith Packard not be used in
|
---|
11 | * advertising or publicity pertaining to distribution of the software without
|
---|
12 | * specific, written prior permission. Keith Packard 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 | * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
|
---|
17 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
|
---|
18 | * EVENT SHALL KEITH PACKARD 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 |
|
---|
25 | #ifdef HAVE_DIX_CONFIG_H
|
---|
26 | #include <dix-config.h>
|
---|
27 | #endif
|
---|
28 |
|
---|
29 | #ifndef _XFIXESINT_H_
|
---|
30 | #define _XFIXESINT_H_
|
---|
31 |
|
---|
32 | #define NEED_EVENTS
|
---|
33 | #include <X11/X.h>
|
---|
34 | #include <X11/Xproto.h>
|
---|
35 | #include "misc.h"
|
---|
36 | #include "os.h"
|
---|
37 | #include "dixstruct.h"
|
---|
38 | #include "extnsionst.h"
|
---|
39 | #include <X11/extensions/xfixesproto.h>
|
---|
40 | #include "windowstr.h"
|
---|
41 | #include "selection.h"
|
---|
42 | #include "xfixes.h"
|
---|
43 |
|
---|
44 | extern unsigned char XFixesReqCode;
|
---|
45 | extern int XFixesEventBase;
|
---|
46 | extern int XFixesClientPrivateIndex;
|
---|
47 |
|
---|
48 | typedef struct _XFixesClient {
|
---|
49 | CARD32 major_version;
|
---|
50 | CARD32 minor_version;
|
---|
51 | } XFixesClientRec, *XFixesClientPtr;
|
---|
52 |
|
---|
53 | #define GetXFixesClient(pClient) ((XFixesClientPtr) (pClient)->devPrivates[XFixesClientPrivateIndex].ptr)
|
---|
54 |
|
---|
55 | extern int (*ProcXFixesVector[XFixesNumberRequests])(ClientPtr);
|
---|
56 | extern int (*SProcXFixesVector[XFixesNumberRequests])(ClientPtr);
|
---|
57 |
|
---|
58 | /* Initialize extension at server startup time */
|
---|
59 |
|
---|
60 | void
|
---|
61 | XFixesExtensionInit(void);
|
---|
62 |
|
---|
63 | /* Save set */
|
---|
64 | int
|
---|
65 | ProcXFixesChangeSaveSet(ClientPtr client);
|
---|
66 |
|
---|
67 | int
|
---|
68 | SProcXFixesChangeSaveSet(ClientPtr client);
|
---|
69 |
|
---|
70 | /* Selection events */
|
---|
71 | int
|
---|
72 | ProcXFixesSelectSelectionInput (ClientPtr client);
|
---|
73 |
|
---|
74 | int
|
---|
75 | SProcXFixesSelectSelectionInput (ClientPtr client);
|
---|
76 |
|
---|
77 | void
|
---|
78 | SXFixesSelectionNotifyEvent (xXFixesSelectionNotifyEvent *from,
|
---|
79 | xXFixesSelectionNotifyEvent *to);
|
---|
80 | Bool
|
---|
81 | XFixesSelectionInit (void);
|
---|
82 |
|
---|
83 | /* Cursor notification */
|
---|
84 | Bool
|
---|
85 | XFixesCursorInit (void);
|
---|
86 |
|
---|
87 | int
|
---|
88 | ProcXFixesSelectCursorInput (ClientPtr client);
|
---|
89 |
|
---|
90 | int
|
---|
91 | SProcXFixesSelectCursorInput (ClientPtr client);
|
---|
92 |
|
---|
93 | void
|
---|
94 | SXFixesCursorNotifyEvent (xXFixesCursorNotifyEvent *from,
|
---|
95 | xXFixesCursorNotifyEvent *to);
|
---|
96 |
|
---|
97 | int
|
---|
98 | ProcXFixesGetCursorImage (ClientPtr client);
|
---|
99 |
|
---|
100 | int
|
---|
101 | SProcXFixesGetCursorImage (ClientPtr client);
|
---|
102 |
|
---|
103 | /* Cursor names (Version 2) */
|
---|
104 |
|
---|
105 | int
|
---|
106 | ProcXFixesSetCursorName (ClientPtr client);
|
---|
107 |
|
---|
108 | int
|
---|
109 | SProcXFixesSetCursorName (ClientPtr client);
|
---|
110 |
|
---|
111 | int
|
---|
112 | ProcXFixesGetCursorName (ClientPtr client);
|
---|
113 |
|
---|
114 | int
|
---|
115 | SProcXFixesGetCursorName (ClientPtr client);
|
---|
116 |
|
---|
117 | int
|
---|
118 | ProcXFixesGetCursorImageAndName (ClientPtr client);
|
---|
119 |
|
---|
120 | int
|
---|
121 | SProcXFixesGetCursorImageAndName (ClientPtr client);
|
---|
122 |
|
---|
123 | /* Cursor replacement (Version 2) */
|
---|
124 |
|
---|
125 | int
|
---|
126 | ProcXFixesChangeCursor (ClientPtr client);
|
---|
127 |
|
---|
128 | int
|
---|
129 | SProcXFixesChangeCursor (ClientPtr client);
|
---|
130 |
|
---|
131 | int
|
---|
132 | ProcXFixesChangeCursorByName (ClientPtr client);
|
---|
133 |
|
---|
134 | int
|
---|
135 | SProcXFixesChangeCursorByName (ClientPtr client);
|
---|
136 |
|
---|
137 | /* Region objects (Version 2* */
|
---|
138 | Bool
|
---|
139 | XFixesRegionInit (void);
|
---|
140 |
|
---|
141 | int
|
---|
142 | ProcXFixesCreateRegion (ClientPtr client);
|
---|
143 |
|
---|
144 | int
|
---|
145 | SProcXFixesCreateRegion (ClientPtr client);
|
---|
146 |
|
---|
147 | int
|
---|
148 | ProcXFixesCreateRegionFromBitmap (ClientPtr client);
|
---|
149 |
|
---|
150 | int
|
---|
151 | SProcXFixesCreateRegionFromBitmap (ClientPtr client);
|
---|
152 |
|
---|
153 | int
|
---|
154 | ProcXFixesCreateRegionFromWindow (ClientPtr client);
|
---|
155 |
|
---|
156 | int
|
---|
157 | SProcXFixesCreateRegionFromWindow (ClientPtr client);
|
---|
158 |
|
---|
159 | int
|
---|
160 | ProcXFixesCreateRegionFromGC (ClientPtr client);
|
---|
161 |
|
---|
162 | int
|
---|
163 | SProcXFixesCreateRegionFromGC (ClientPtr client);
|
---|
164 |
|
---|
165 | int
|
---|
166 | ProcXFixesCreateRegionFromPicture (ClientPtr client);
|
---|
167 |
|
---|
168 | int
|
---|
169 | SProcXFixesCreateRegionFromPicture (ClientPtr client);
|
---|
170 |
|
---|
171 | int
|
---|
172 | ProcXFixesDestroyRegion (ClientPtr client);
|
---|
173 |
|
---|
174 | int
|
---|
175 | SProcXFixesDestroyRegion (ClientPtr client);
|
---|
176 |
|
---|
177 | int
|
---|
178 | ProcXFixesSetRegion (ClientPtr client);
|
---|
179 |
|
---|
180 | int
|
---|
181 | SProcXFixesSetRegion (ClientPtr client);
|
---|
182 |
|
---|
183 | int
|
---|
184 | ProcXFixesCopyRegion (ClientPtr client);
|
---|
185 |
|
---|
186 | int
|
---|
187 | SProcXFixesCopyRegion (ClientPtr client);
|
---|
188 |
|
---|
189 | int
|
---|
190 | ProcXFixesCombineRegion (ClientPtr client);
|
---|
191 |
|
---|
192 | int
|
---|
193 | SProcXFixesCombineRegion (ClientPtr client);
|
---|
194 |
|
---|
195 | int
|
---|
196 | ProcXFixesInvertRegion (ClientPtr client);
|
---|
197 |
|
---|
198 | int
|
---|
199 | SProcXFixesInvertRegion (ClientPtr client);
|
---|
200 |
|
---|
201 | int
|
---|
202 | ProcXFixesTranslateRegion (ClientPtr client);
|
---|
203 |
|
---|
204 | int
|
---|
205 | SProcXFixesTranslateRegion (ClientPtr client);
|
---|
206 |
|
---|
207 | int
|
---|
208 | ProcXFixesRegionExtents (ClientPtr client);
|
---|
209 |
|
---|
210 | int
|
---|
211 | SProcXFixesRegionExtents (ClientPtr client);
|
---|
212 |
|
---|
213 | int
|
---|
214 | ProcXFixesFetchRegion (ClientPtr client);
|
---|
215 |
|
---|
216 | int
|
---|
217 | SProcXFixesFetchRegion (ClientPtr client);
|
---|
218 |
|
---|
219 | int
|
---|
220 | ProcXFixesSetGCClipRegion (ClientPtr client);
|
---|
221 |
|
---|
222 | int
|
---|
223 | SProcXFixesSetGCClipRegion (ClientPtr client);
|
---|
224 |
|
---|
225 | int
|
---|
226 | ProcXFixesSetWindowShapeRegion (ClientPtr client);
|
---|
227 |
|
---|
228 | int
|
---|
229 | SProcXFixesSetWindowShapeRegion (ClientPtr client);
|
---|
230 |
|
---|
231 | int
|
---|
232 | ProcXFixesSetPictureClipRegion (ClientPtr client);
|
---|
233 |
|
---|
234 | int
|
---|
235 | SProcXFixesSetPictureClipRegion (ClientPtr client);
|
---|
236 |
|
---|
237 | int
|
---|
238 | ProcXFixesExpandRegion (ClientPtr client);
|
---|
239 |
|
---|
240 | int
|
---|
241 | SProcXFixesExpandRegion (ClientPtr client);
|
---|
242 |
|
---|
243 | #endif /* _XFIXESINT_H_ */
|
---|