Xfixes.h revision 6d63826eda6b7f83377256f4ad0833d0b4e448fd
/*
*
* Copyright © 2006 Sun Microsystems
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Sun Microsystems not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Sun Microsystems makes no
* representations about the suitability of this software for any purpose. It
* is provided "as is" without express or implied warranty.
*
* SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*
* Copyright © 2002 Keith Packard, member of The XFree86 Project, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software and its
* documentation for any purpose is hereby granted without fee, provided that
* the above copyright notice appear in all copies and that both that
* copyright notice and this permission notice appear in supporting
* documentation, and that the name of Keith Packard not be used in
* advertising or publicity pertaining to distribution of the software without
* specific, written prior permission. Keith Packard makes no
* representations about the suitability of this software for any purpose. It
* is provided "as is" without express or implied warranty.
*
* KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
* INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
* EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
* CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
* DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
* TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
* PERFORMANCE OF THIS SOFTWARE.
*/
#ifndef _XFIXES_H_
#define _XFIXES_H_
#include <X11/Xfuncproto.h>
/*
* This revision number also appears in configure.ac, they have
* to be manually synchronized
*/
#define XFIXES_REVISION 1
typedef struct {
int type; /* event base */
unsigned long serial;
int subtype;
typedef struct {
int type; /* event base */
unsigned long serial;
int subtype;
unsigned long cursor_serial;
typedef struct {
short x, y;
unsigned long cursor_serial;
unsigned long *pixels;
#if XFIXES_MAJOR >= 2
const char *name; /* Version >= 2 only */
#endif
#if XFIXES_MAJOR >= 2
/* Version 2 types */
typedef XID XserverRegion;
typedef struct {
short x, y;
unsigned long cursor_serial;
unsigned long *pixels;
const char *name;
#endif
int *major_versionp,
int *minor_versionp);
int XFixesVersion (void);
void
int mode,
int target,
int map);
void
unsigned long eventMask);
void
unsigned long eventMask);
#if XFIXES_MAJOR >= 2
/* Version 2 functions */
void
void
void
void
void
void
void
void
void
int *nrectanglesRet,
XRectangle *bounds);
void
int clip_x_origin, int clip_y_origin,
void
void
int clip_x_origin, int clip_y_origin,
void
const char *
void
void
#endif /* XFIXES_MAJOR >= 2 */
#if XFIXES_MAJOR >= 3
void
#endif /* XFIXES_MAJOR >= 3 */
#if XFIXES_MAJOR >= 4
/* Version 4.0 externs */
void
void
#endif /* XFIXES_MAJOR >= 4 */
#endif /* _XFIXES_H_ */