14b0ead49Smrg/*
249dc963fSmrg * Copyright (c) 2006, Oracle and/or its affiliates. All rights reserved.
34b0ead49Smrg *
449dc963fSmrg * Permission is hereby granted, free of charge, to any person obtaining a
549dc963fSmrg * copy of this software and associated documentation files (the "Software"),
649dc963fSmrg * to deal in the Software without restriction, including without limitation
749dc963fSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense,
849dc963fSmrg * and/or sell copies of the Software, and to permit persons to whom the
949dc963fSmrg * Software is furnished to do so, subject to the following conditions:
104b0ead49Smrg *
1149dc963fSmrg * The above copyright notice and this permission notice (including the next
1249dc963fSmrg * paragraph) shall be included in all copies or substantial portions of the
1349dc963fSmrg * Software.
144b0ead49Smrg *
1549dc963fSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1649dc963fSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1749dc963fSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
1849dc963fSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1949dc963fSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
2049dc963fSmrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
2149dc963fSmrg * DEALINGS IN THE SOFTWARE.
2249dc963fSmrg */
2349dc963fSmrg/*
244b0ead49Smrg * Copyright © 2003 Keith Packard
254b0ead49Smrg *
264b0ead49Smrg * Permission to use, copy, modify, distribute, and sell this software and its
274b0ead49Smrg * documentation for any purpose is hereby granted without fee, provided that
284b0ead49Smrg * the above copyright notice appear in all copies and that both that
294b0ead49Smrg * copyright notice and this permission notice appear in supporting
304b0ead49Smrg * documentation, and that the name of Keith Packard not be used in
314b0ead49Smrg * advertising or publicity pertaining to distribution of the software without
324b0ead49Smrg * specific, written prior permission.  Keith Packard makes no
334b0ead49Smrg * representations about the suitability of this software for any purpose.  It
344b0ead49Smrg * is provided "as is" without express or implied warranty.
354b0ead49Smrg *
364b0ead49Smrg * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
374b0ead49Smrg * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
384b0ead49Smrg * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
394b0ead49Smrg * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
404b0ead49Smrg * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
414b0ead49Smrg * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
424b0ead49Smrg * PERFORMANCE OF THIS SOFTWARE.
434b0ead49Smrg */
444b0ead49Smrg
454b0ead49Smrg#ifndef _XCOMPOSITE_H_
464b0ead49Smrg#define _XCOMPOSITE_H_
474b0ead49Smrg
484b0ead49Smrg#include <X11/extensions/composite.h>
494b0ead49Smrg#include <X11/extensions/Xfixes.h>
504b0ead49Smrg#include <X11/Xfuncproto.h>
514b0ead49Smrg
524b0ead49Smrg/*
534b0ead49Smrg * This revision number also appears in configure.ac, they have
544b0ead49Smrg * to be manually synchronized
554b0ead49Smrg */
564b0ead49Smrg#define XCOMPOSITE_MAJOR	COMPOSITE_MAJOR
574b0ead49Smrg#define XCOMPOSITE_MINOR	COMPOSITE_MINOR
584b0ead49Smrg#define XCOMPOSITE_REVISION	2
594b0ead49Smrg#define XCOMPOSITE_VERSION	((XCOMPOSITE_MAJOR * 10000) + (XCOMPOSITE_MINOR * 100) + (XCOMPOSITE_REVISION))
604b0ead49Smrg
614b0ead49Smrg_XFUNCPROTOBEGIN
624b0ead49Smrg
6352b01e16SmrgBool XCompositeQueryExtension (Display *dpy,
6452b01e16Smrg                               int *event_base_return,
6552b01e16Smrg                               int *error_base_return);
664b0ead49Smrg
674b0ead49SmrgStatus XCompositeQueryVersion (Display *dpy,
6852b01e16Smrg                               int     *major_version_return,
6952b01e16Smrg                               int     *minor_version_return);
704b0ead49Smrg
714b0ead49Smrgint XCompositeVersion (void);
724b0ead49Smrg
734b0ead49Smrgvoid
744b0ead49SmrgXCompositeRedirectWindow (Display *dpy, Window window, int update);
754b0ead49Smrg
764b0ead49Smrgvoid
774b0ead49SmrgXCompositeRedirectSubwindows (Display *dpy, Window window, int update);
784b0ead49Smrg
794b0ead49Smrgvoid
804b0ead49SmrgXCompositeUnredirectWindow (Display *dpy, Window window, int update);
814b0ead49Smrg
824b0ead49Smrgvoid
834b0ead49SmrgXCompositeUnredirectSubwindows (Display *dpy, Window window, int update);
844b0ead49Smrg
854b0ead49SmrgXserverRegion
864b0ead49SmrgXCompositeCreateRegionFromBorderClip (Display *dpy, Window window);
874b0ead49Smrg
884b0ead49SmrgPixmap
894b0ead49SmrgXCompositeNameWindowPixmap (Display *dpy, Window window);
904b0ead49Smrg
914b0ead49SmrgWindow
924b0ead49SmrgXCompositeGetOverlayWindow (Display *dpy, Window window);
934b0ead49Smrg
944b0ead49Smrgvoid
954b0ead49SmrgXCompositeReleaseOverlayWindow (Display *dpy, Window window);
964b0ead49Smrg
974b0ead49Smrg_XFUNCPROTOEND
984b0ead49Smrg
994b0ead49Smrg#endif /* _XCOMPOSITE_H_ */
100