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