040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Copyright 2001-2004 Red Hat Inc., Durham, North Carolina.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * All Rights Reserved.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Permission is hereby granted, free of charge, to any person obtaining
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * a copy of this software and associated documentation files (the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * "Software"), to deal in the Software without restriction, including
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * without limitation on the rights to use, copy, modify, merge,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * publish, distribute, sublicense, and/or sell copies of the Software,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * and to permit persons to whom the Software is furnished to do so,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * subject to the following conditions:
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * The above copyright notice and this permission notice (including the
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * next paragraph) shall be included in all copies or substantial
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * portions of the Software.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * SOFTWARE.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * Kevin E. Martin <kem@redhat.com>
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * This file provides access to the externally visible RENDER support
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * functions, global variables and macros for DMX.
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * FIXME: Move function definitions for non-externally visible function
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * to .c file. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** Picture private structure */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Picture pict; /**< Picture ID from back-end server */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync Mask savedMask; /**< Mask of picture attributes saved for
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync * lazy window creation. */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** Glyph Set private structure */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync GlyphSet *glyphSets; /**< Glyph Set IDs from back-end server */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxInitRender(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxResetRender(void);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxCreatePictureList(WindowPtr pWindow);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern Bool dmxDestroyPictureList(WindowPtr pWindow);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern int dmxChangePictureClip(PicturePtr pPicture, int clipType,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxDestroyPictureClip(PicturePtr pPicture);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxChangePicture(PicturePtr pPicture, Mask mask);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxValidatePicture(PicturePtr pPicture, Mask mask);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync PicturePtr pSrc, PicturePtr pMask, PicturePtr pDst,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern Bool dmxInitIndexed(ScreenPtr pScreen, PictFormatPtr pFormat);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxCloseIndexed(ScreenPtr pScreen, PictFormatPtr pFormat);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern void dmxUpdateIndexed(ScreenPtr pScreen, PictFormatPtr pFormat,
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern int dmxBECreateGlyphSet(int idx, GlyphSetPtr glyphSet);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern Bool dmxBEFreeGlyphSet(ScreenPtr pScreen, GlyphSetPtr glyphSet);
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern DevPrivateKey dmxPictPrivateKey; /**< Index for picture private data */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsyncextern DevPrivateKey dmxGlyphSetPrivateKey; /**< Index for glyphset private data */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** Get the picture private data given a picture pointer */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (dmxPictPrivPtr)dixLookupPrivate(&(_pPict)->devPrivates, dmxPictPrivateKey)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** Set the glyphset private data given a glyphset pointer */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync GlyphSetSetPrivate((_pGlyph), dmxGlyphSetPrivateKey, (_pPriv))
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync/** Get the glyphset private data given a glyphset pointer */
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync (dmxGlyphPrivPtr)GlyphSetGetPrivate((_pGlyph), dmxGlyphSetPrivateKey)
040abec2534dadc53ebc8fa378ef03f4feecb7dbvboxsync#endif /* DMXPICT_H */