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