Xcomposite.h revision 52b01e16
1/* 2 * Copyright © 2006 Sun Microsystems 3 * 4 * Permission to use, copy, modify, distribute, and sell this software and its 5 * documentation for any purpose is hereby granted without fee, provided that 6 * the above copyright notice appear in all copies and that both that 7 * copyright notice and this permission notice appear in supporting 8 * documentation, and that the name of Sun Microsystems not be used in 9 * advertising or publicity pertaining to distribution of the software without 10 * specific, written prior permission. Sun Microsystems makes no 11 * representations about the suitability of this software for any purpose. It 12 * is provided "as is" without express or implied warranty. 13 * 14 * SUN MICROSYSTEMS DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 16 * EVENT SHALL SUN MICROSYSTEMS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 20 * PERFORMANCE OF THIS SOFTWARE. 21 * 22 * Copyright © 2003 Keith Packard 23 * 24 * Permission to use, copy, modify, distribute, and sell this software and its 25 * documentation for any purpose is hereby granted without fee, provided that 26 * the above copyright notice appear in all copies and that both that 27 * copyright notice and this permission notice appear in supporting 28 * documentation, and that the name of Keith Packard not be used in 29 * advertising or publicity pertaining to distribution of the software without 30 * specific, written prior permission. Keith Packard makes no 31 * representations about the suitability of this software for any purpose. It 32 * is provided "as is" without express or implied warranty. 33 * 34 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 35 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 36 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR 37 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 38 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 39 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 40 * PERFORMANCE OF THIS SOFTWARE. 41 */ 42 43#ifndef _XCOMPOSITE_H_ 44#define _XCOMPOSITE_H_ 45 46#include <X11/extensions/composite.h> 47#include <X11/extensions/Xfixes.h> 48#include <X11/Xfuncproto.h> 49 50/* 51 * This revision number also appears in configure.ac, they have 52 * to be manually synchronized 53 */ 54#define XCOMPOSITE_MAJOR COMPOSITE_MAJOR 55#define XCOMPOSITE_MINOR COMPOSITE_MINOR 56#define XCOMPOSITE_REVISION 2 57#define XCOMPOSITE_VERSION ((XCOMPOSITE_MAJOR * 10000) + (XCOMPOSITE_MINOR * 100) + (XCOMPOSITE_REVISION)) 58 59_XFUNCPROTOBEGIN 60 61Bool XCompositeQueryExtension (Display *dpy, 62 int *event_base_return, 63 int *error_base_return); 64 65Status XCompositeQueryVersion (Display *dpy, 66 int *major_version_return, 67 int *minor_version_return); 68 69int XCompositeVersion (void); 70 71void 72XCompositeRedirectWindow (Display *dpy, Window window, int update); 73 74void 75XCompositeRedirectSubwindows (Display *dpy, Window window, int update); 76 77void 78XCompositeUnredirectWindow (Display *dpy, Window window, int update); 79 80void 81XCompositeUnredirectSubwindows (Display *dpy, Window window, int update); 82 83XserverRegion 84XCompositeCreateRegionFromBorderClip (Display *dpy, Window window); 85 86Pixmap 87XCompositeNameWindowPixmap (Display *dpy, Window window); 88 89Window 90XCompositeGetOverlayWindow (Display *dpy, Window window); 91 92void 93XCompositeReleaseOverlayWindow (Display *dpy, Window window); 94 95_XFUNCPROTOEND 96 97#endif /* _XCOMPOSITE_H_ */ 98