2
* $XFree86: xc/lib/Xfixes/Xfixes.h,v 1.1 2002/11/30 06:21:45 keithp Exp $
4
* Copyright © 2006 Sun Microsystems
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.
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.
24
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
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.
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.
48
#include <X11/extensions/xfixeswire.h>
50
#include <X11/Xfuncproto.h>
54
* This revision number also appears in configure.ac, they have
55
* to be manually synchronized
57
#define XFIXES_REVISION 1
58
#define XFIXES_VERSION ((XFIXES_MAJOR * 10000) + (XFIXES_MINOR * 100) + (XFIXES_REVISION))
61
int type; /* event base */
70
Time selection_timestamp;
71
} XFixesSelectionNotifyEvent;
74
int type; /* event base */
80
unsigned long cursor_serial;
83
} XFixesCursorNotifyEvent;
87
unsigned short width, height;
88
unsigned short xhot, yhot;
89
unsigned long cursor_serial;
90
unsigned long *pixels;
92
Atom atom; /* Version >= 2 only */
93
const char *name; /* Version >= 2 only */
100
typedef XID XserverRegion;
104
unsigned short width, height;
105
unsigned short xhot, yhot;
106
unsigned long cursor_serial;
107
unsigned long *pixels;
110
} XFixesCursorImageAndName;
116
Bool XFixesQueryExtension (Display *dpy, int *event_basep, int *error_basep);
117
Status XFixesQueryVersion (Display *dpy,
119
int *minor_versionp);
121
int XFixesVersion (void);
124
XFixesChangeSaveSet (Display *dpy,
131
XFixesSelectSelectionInput (Display *dpy,
134
unsigned long eventMask);
137
XFixesSelectCursorInput (Display *dpy,
139
unsigned long eventMask);
142
XFixesGetCursorImage (Display *dpy);
144
#if XFIXES_MAJOR >= 2
145
/* Version 2 functions */
148
XFixesCreateRegion (Display *dpy, XRectangle *rectangles, int nrectangles);
151
XFixesCreateRegionFromBitmap (Display *dpy, Pixmap bitmap);
154
XFixesCreateRegionFromWindow (Display *dpy, Window window, int kind);
157
XFixesCreateRegionFromGC (Display *dpy, GC gc);
160
XFixesCreateRegionFromPicture (Display *dpy, XID picture);
163
XFixesDestroyRegion (Display *dpy, XserverRegion region);
166
XFixesSetRegion (Display *dpy, XserverRegion region,
167
XRectangle *rectangles, int nrectangles);
170
XFixesCopyRegion (Display *dpy, XserverRegion dst, XserverRegion src);
173
XFixesUnionRegion (Display *dpy, XserverRegion dst,
174
XserverRegion src1, XserverRegion src2);
177
XFixesIntersectRegion (Display *dpy, XserverRegion dst,
178
XserverRegion src1, XserverRegion src2);
181
XFixesSubtractRegion (Display *dpy, XserverRegion dst,
182
XserverRegion src1, XserverRegion src2);
185
XFixesInvertRegion (Display *dpy, XserverRegion dst,
186
XRectangle *rect, XserverRegion src);
189
XFixesTranslateRegion (Display *dpy, XserverRegion region, int dx, int dy);
192
XFixesRegionExtents (Display *dpy, XserverRegion dst, XserverRegion src);
195
XFixesFetchRegion (Display *dpy, XserverRegion region, int *nrectanglesRet);
198
XFixesFetchRegionAndBounds (Display *dpy, XserverRegion region,
203
XFixesSetGCClipRegion (Display *dpy, GC gc,
204
int clip_x_origin, int clip_y_origin,
205
XserverRegion region);
208
XFixesSetWindowShapeRegion (Display *dpy, Window win, int shape_kind,
209
int x_off, int y_off, XserverRegion region);
212
XFixesSetPictureClipRegion (Display *dpy, XID picture,
213
int clip_x_origin, int clip_y_origin,
214
XserverRegion region);
217
XFixesSetCursorName (Display *dpy, Cursor cursor, const char *name);
220
XFixesGetCursorName (Display *dpy, Cursor cursor, Atom *atom);
223
XFixesChangeCursor (Display *dpy, Cursor source, Cursor destination);
226
XFixesChangeCursorByName (Display *dpy, Cursor source, const char *name);
228
#endif /* XFIXES_MAJOR >= 2 */
230
#if XFIXES_MAJOR >= 3
233
XFixesExpandRegion (Display *dpy, XserverRegion dst, XserverRegion src,
234
unsigned left, unsigned right,
235
unsigned top, unsigned bottom);
237
#endif /* XFIXES_MAJOR >= 3 */
239
#if XFIXES_MAJOR >= 4
240
/* Version 4.0 externs */
243
XFixesHideCursor (Display *dpy, Window win);
246
XFixesShowCursor (Display *dpy, Window win);
248
#endif /* XFIXES_MAJOR >= 4 */
252
#endif /* _XFIXES_H_ */