xref: /OK3568_Linux_fs/external/xserver/hw/dmx/dmxgcops.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun  * Copyright 2001,2002 Red Hat Inc., Durham, North Carolina.
3*4882a593Smuzhiyun  *
4*4882a593Smuzhiyun  * All Rights Reserved.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Permission is hereby granted, free of charge, to any person obtaining
7*4882a593Smuzhiyun  * a copy of this software and associated documentation files (the
8*4882a593Smuzhiyun  * "Software"), to deal in the Software without restriction, including
9*4882a593Smuzhiyun  * without limitation on the rights to use, copy, modify, merge,
10*4882a593Smuzhiyun  * publish, distribute, sublicense, and/or sell copies of the Software,
11*4882a593Smuzhiyun  * and to permit persons to whom the Software is furnished to do so,
12*4882a593Smuzhiyun  * subject to the following conditions:
13*4882a593Smuzhiyun  *
14*4882a593Smuzhiyun  * The above copyright notice and this permission notice (including the
15*4882a593Smuzhiyun  * next paragraph) shall be included in all copies or substantial
16*4882a593Smuzhiyun  * portions of the Software.
17*4882a593Smuzhiyun  *
18*4882a593Smuzhiyun  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
19*4882a593Smuzhiyun  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20*4882a593Smuzhiyun  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
21*4882a593Smuzhiyun  * NON-INFRINGEMENT.  IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
22*4882a593Smuzhiyun  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
23*4882a593Smuzhiyun  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
24*4882a593Smuzhiyun  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25*4882a593Smuzhiyun  * SOFTWARE.
26*4882a593Smuzhiyun  */
27*4882a593Smuzhiyun 
28*4882a593Smuzhiyun /*
29*4882a593Smuzhiyun  * Authors:
30*4882a593Smuzhiyun  *   Kevin E. Martin <kem@redhat.com>
31*4882a593Smuzhiyun  *
32*4882a593Smuzhiyun  */
33*4882a593Smuzhiyun 
34*4882a593Smuzhiyun /** \file
35*4882a593Smuzhiyun  * Interface for gcops support.  \see dmxgcops.c */
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun #ifndef DMXGCOPS_H
38*4882a593Smuzhiyun #define DMXGCOPS_H
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun extern void dmxFillSpans(DrawablePtr pDrawable, GCPtr pGC,
41*4882a593Smuzhiyun                          int nInit, DDXPointPtr pptInit, int *pwidthInit,
42*4882a593Smuzhiyun                          int fSorted);
43*4882a593Smuzhiyun extern void dmxSetSpans(DrawablePtr pDrawable, GCPtr pGC,
44*4882a593Smuzhiyun                         char *psrc, DDXPointPtr ppt, int *pwidth, int nspans,
45*4882a593Smuzhiyun                         int fSorted);
46*4882a593Smuzhiyun extern void dmxPutImage(DrawablePtr pDrawable, GCPtr pGC,
47*4882a593Smuzhiyun                         int depth, int x, int y, int w, int h,
48*4882a593Smuzhiyun                         int leftPad, int format, char *pBits);
49*4882a593Smuzhiyun extern RegionPtr dmxCopyArea(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
50*4882a593Smuzhiyun                              int srcx, int srcy, int w, int h,
51*4882a593Smuzhiyun                              int dstx, int dsty);
52*4882a593Smuzhiyun extern RegionPtr dmxCopyPlane(DrawablePtr pSrc, DrawablePtr pDst, GCPtr pGC,
53*4882a593Smuzhiyun                               int srcx, int srcy, int width, int height,
54*4882a593Smuzhiyun                               int dstx, int dsty, unsigned long bitPlane);
55*4882a593Smuzhiyun extern void dmxPolyPoint(DrawablePtr pDrawable, GCPtr pGC,
56*4882a593Smuzhiyun                          int mode, int npt, DDXPointPtr pptInit);
57*4882a593Smuzhiyun extern void dmxPolylines(DrawablePtr pDrawable, GCPtr pGC,
58*4882a593Smuzhiyun                          int mode, int npt, DDXPointPtr pptInit);
59*4882a593Smuzhiyun extern void dmxPolySegment(DrawablePtr pDrawable, GCPtr pGC,
60*4882a593Smuzhiyun                            int nseg, xSegment * pSegs);
61*4882a593Smuzhiyun extern void dmxPolyRectangle(DrawablePtr pDrawable, GCPtr pGC,
62*4882a593Smuzhiyun                              int nrects, xRectangle *pRects);
63*4882a593Smuzhiyun extern void dmxPolyArc(DrawablePtr pDrawable, GCPtr pGC,
64*4882a593Smuzhiyun                        int narcs, xArc * parcs);
65*4882a593Smuzhiyun extern void dmxFillPolygon(DrawablePtr pDrawable, GCPtr pGC,
66*4882a593Smuzhiyun                            int shape, int mode, int count, DDXPointPtr pPts);
67*4882a593Smuzhiyun extern void dmxPolyFillRect(DrawablePtr pDrawable, GCPtr pGC,
68*4882a593Smuzhiyun                             int nrectFill, xRectangle *prectInit);
69*4882a593Smuzhiyun extern void dmxPolyFillArc(DrawablePtr pDrawable, GCPtr pGC,
70*4882a593Smuzhiyun                            int narcs, xArc * parcs);
71*4882a593Smuzhiyun extern int dmxPolyText8(DrawablePtr pDrawable, GCPtr pGC,
72*4882a593Smuzhiyun                         int x, int y, int count, char *chars);
73*4882a593Smuzhiyun extern int dmxPolyText16(DrawablePtr pDrawable, GCPtr pGC,
74*4882a593Smuzhiyun                          int x, int y, int count, unsigned short *chars);
75*4882a593Smuzhiyun extern void dmxImageText8(DrawablePtr pDrawable, GCPtr pGC,
76*4882a593Smuzhiyun                           int x, int y, int count, char *chars);
77*4882a593Smuzhiyun extern void dmxImageText16(DrawablePtr pDrawable, GCPtr pGC,
78*4882a593Smuzhiyun                            int x, int y, int count, unsigned short *chars);
79*4882a593Smuzhiyun extern void dmxImageGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
80*4882a593Smuzhiyun                              int x, int y, unsigned int nglyph,
81*4882a593Smuzhiyun                              CharInfoPtr * ppci, void *pglyphBase);
82*4882a593Smuzhiyun extern void dmxPolyGlyphBlt(DrawablePtr pDrawable, GCPtr pGC,
83*4882a593Smuzhiyun                             int x, int y, unsigned int nglyph,
84*4882a593Smuzhiyun                             CharInfoPtr * ppci, void *pglyphBase);
85*4882a593Smuzhiyun extern void dmxPushPixels(GCPtr pGC, PixmapPtr pBitMap, DrawablePtr pDst,
86*4882a593Smuzhiyun                           int w, int h, int x, int y);
87*4882a593Smuzhiyun 
88*4882a593Smuzhiyun extern void dmxGetImage(DrawablePtr pDrawable, int sx, int sy, int w, int h,
89*4882a593Smuzhiyun                         unsigned int format, unsigned long planeMask,
90*4882a593Smuzhiyun                         char *pdstLine);
91*4882a593Smuzhiyun extern void dmxGetSpans(DrawablePtr pDrawable, int wMax,
92*4882a593Smuzhiyun                         DDXPointPtr ppt, int *pwidth, int nspans,
93*4882a593Smuzhiyun                         char *pdstStart);
94*4882a593Smuzhiyun 
95*4882a593Smuzhiyun #endif                          /* DMXGCOPS_H */
96