a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/*
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Copyright 2001,2002 Red Hat Inc., Durham, North Carolina.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * All Rights Reserved.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Permission is hereby granted, free of charge, to any person obtaining
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * a copy of this software and associated documentation files (the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * "Software"), to deal in the Software without restriction, including
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * without limitation on the rights to use, copy, modify, merge,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * publish, distribute, sublicense, and/or sell copies of the Software,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * and to permit persons to whom the Software is furnished to do so,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * subject to the following conditions:
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * The above copyright notice and this permission notice (including the
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * next paragraph) shall be included in all copies or substantial
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * portions of the Software.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * SOFTWARE.
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/*
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Authors:
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Kevin E. Martin <kem@redhat.com>
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync *
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync/** \file
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync * Interface for gcops support. \see dmxgcops.c */
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#ifndef DMXGCOPS_H
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#define DMXGCOPS_H
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxFillSpans(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int nInit, DDXPointPtr pptInit, int *pwidthInit,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int fSorted);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxSetSpans(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync char *psrc, DDXPointPtr ppt, int *pwidth, int nspans,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int fSorted);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPutImage(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int depth, int x, int y, int w, int h,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int leftPad, int format, char *pBits);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern RegionPtr dmxCopyArea(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int srcx, int srcy, int w, int h,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int dstx, int dsty);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern RegionPtr dmxCopyPlane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int srcx, int srcy, int width, int height,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int dstx, int dsty, unsigned long bitPlane);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolyPoint(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int mode, int npt, DDXPointPtr pptInit);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolylines(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int mode, int npt, DDXPointPtr pptInit);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolySegment(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int nseg, xSegment * pSegs);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolyRectangle(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int nrects, xRectangle *pRects);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolyArc(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int narcs, xArc * parcs);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxFillPolygon(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int shape, int mode, int count, DDXPointPtr pPts);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int nrectFill, xRectangle *prectInit);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolyFillArc(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int narcs, xArc * parcs);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern int dmxPolyText8(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int x, int y, int count, char *chars);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern int dmxPolyText16(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int x, int y, int count, unsigned short *chars);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxImageText8(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int x, int y, int count, char *chars);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxImageText16(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int x, int y, int count, unsigned short *chars);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int x, int y, unsigned int nglyph,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync CharInfoPtr * ppci, void *pglyphBase);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int x, int y, unsigned int nglyph,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync CharInfoPtr * ppci, void *pglyphBase);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxPushPixels(GCPtr pGC, PixmapPtr pBitMap, DrawablePtr pDst,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync int w, int h, int x, int y);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxGetImage(DrawablePtr pDrawable, int sx, int sy, int w, int h,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync unsigned int format, unsigned long planeMask,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync char *pdstLine);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsyncextern void dmxGetSpans(DrawablePtr pDrawable, int wMax,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync DDXPointPtr ppt, int *pwidth, int nspans,
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync char *pdstStart);
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync
a5e7ae69e440f6816420fc99599f044e79e716b6vboxsync#endif /* DMXGCOPS_H */