a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Copyright © 2000 Keith Packard
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * Permission to use, copy, modify, distribute, and sell this software and its
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * documentation for any purpose is hereby granted without fee, provided that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * the above copyright notice appear in all copies and that both that
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * copyright notice and this permission notice appear in supporting
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * documentation, and that the name of Keith Packard not be used in
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * advertising or publicity pertaining to distribution of the software without
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * specific, written prior permission. Keith Packard makes no
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * representations about the suitability of this software for any purpose. It
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * is provided "as is" without express or implied warranty.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync * PERFORMANCE OF THIS SOFTWARE.
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef void (*ShadowUpdateProc) (ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef void *(*ShadowWindowProc) (ScreenPtr pScreen,
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/* BC hack: do not move the damage member. see shadow.c for explanation. */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync /* screen wrappers */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync/* Match defines from randr extension */
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define SHADOW_ROTATE_ALL (SHADOW_ROTATE_0|SHADOW_ROTATE_90|\
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define SHADOW_REFLECT_ALL (SHADOW_REFLECT_X|SHADOW_REFLECT_Y)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync dixLookupPrivate(&(pScr)->devPrivates, shadowScrPrivateKey))
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define shadowBuf(pScr) shadowBufPtr pBuf = shadowGetBuf(pScr)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#define shadowDamage(pBuf) DamageRegion(pBuf->pDamage)
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync ShadowWindowProc window, int randr, void *closure);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowRemove(ScreenPtr pScreen, PixmapPtr pPixmap);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncshadowInit(ScreenPtr pScreen, ShadowUpdateProc update, ShadowWindowProc window);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT void *shadowAlloc(int width, int height, int bpp);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdatePacked(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdatePlanar4(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdatePlanar4x8(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotatePacked(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate8_90(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate16_90(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate16_90YX(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate32_90(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate8_180(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate16_180(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate32_180(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate8_270(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate16_270(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate16_270YX(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate32_270(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate8(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate16(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync shadowUpdateRotate32(ScreenPtr pScreen, shadowBufPtr pBuf);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsynctypedef void (*shadowUpdateProc) (ScreenPtr, shadowBufPtr);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT shadowUpdateProc shadowUpdatePackedWeak(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT shadowUpdateProc shadowUpdatePlanar4Weak(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT shadowUpdateProc shadowUpdatePlanar4x8Weak(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsyncextern _X_EXPORT shadowUpdateProc shadowUpdateRotatePackedWeak(void);
a3f3701cea1ba388e7c877955252bb7375eedebdvboxsync#endif /* _SHADOW_H_ */