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