65fea56f17cd614bc8908264df980a62e1931468vboxsync/***********************************************************
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCopyright 1987, 1998 The Open Group
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
65fea56f17cd614bc8908264df980a62e1931468vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
65fea56f17cd614bc8908264df980a62e1931468vboxsyncthe above copyright notice appear in all copies and that both that
65fea56f17cd614bc8908264df980a62e1931468vboxsynccopyright notice and this permission notice appear in supporting
65fea56f17cd614bc8908264df980a62e1931468vboxsyncdocumentation.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncThe above copyright notice and this permission notice shall be included in
65fea56f17cd614bc8908264df980a62e1931468vboxsyncall copies or substantial portions of the Software.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
65fea56f17cd614bc8908264df980a62e1931468vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
65fea56f17cd614bc8908264df980a62e1931468vboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncExcept as contained in this notice, the name of The Open Group shall not be
65fea56f17cd614bc8908264df980a62e1931468vboxsyncused in advertising or otherwise to promote the sale, use or other dealings
65fea56f17cd614bc8908264df980a62e1931468vboxsyncin this Software without prior written authorization from The Open Group.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync All Rights Reserved
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncPermission to use, copy, modify, and distribute this software and its
65fea56f17cd614bc8908264df980a62e1931468vboxsyncdocumentation for any purpose and without fee is hereby granted,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncprovided that the above copyright notice appear in all copies and that
65fea56f17cd614bc8908264df980a62e1931468vboxsyncboth that copyright notice and this permission notice appear in
65fea56f17cd614bc8908264df980a62e1931468vboxsyncsupporting documentation, and that the name of Digital not be
65fea56f17cd614bc8908264df980a62e1931468vboxsyncused in advertising or publicity pertaining to distribution of the
65fea56f17cd614bc8908264df980a62e1931468vboxsyncsoftware without specific, written prior permission.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
65fea56f17cd614bc8908264df980a62e1931468vboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
65fea56f17cd614bc8908264df980a62e1931468vboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
65fea56f17cd614bc8908264df980a62e1931468vboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
65fea56f17cd614bc8908264df980a62e1931468vboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
65fea56f17cd614bc8908264df980a62e1931468vboxsyncSOFTWARE.
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync******************************************************************/
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#ifndef GCSTRUCT_H
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define GCSTRUCT_H
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "gc.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "regionstr.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "region.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "pixmap.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "screenint.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include "privates.h"
65fea56f17cd614bc8908264df980a62e1931468vboxsync#include <X11/Xprotostr.h>
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#define GCAllBits ((1 << (GCLastBit + 1)) - 1)
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync/*
65fea56f17cd614bc8908264df980a62e1931468vboxsync * functions which modify the state of the GC
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct _GCFuncs {
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*ValidateGC) (GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long /*stateChanges */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DrawablePtr /*pDrawable */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*ChangeGC) (GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long /*mask */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*CopyGC) (GCPtr /*pGCSrc */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long /*mask */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGCDst */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*DestroyGC) (GCPtr /*pGC */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*ChangeClip) (GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*type */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync pointer /*pvalue */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*nrects */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*DestroyClip) (GCPtr /*pGC */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*CopyClip) (GCPtr /*pgcDst */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pgcSrc */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync} GCFuncs;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync/*
65fea56f17cd614bc8908264df980a62e1931468vboxsync * graphics operations invoked through a GC
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct _GCOps {
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*FillSpans) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*nInit */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointPtr /*pptInit */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int * /*pwidthInit */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*fSorted */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*SetSpans) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync char * /*psrc */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointPtr /*ppt */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int * /*pwidth */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*nspans */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*fSorted */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PutImage) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*depth */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*w */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*h */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*leftPad */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*format */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync char * /*pBits */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync RegionPtr (*CopyArea) (DrawablePtr /*pSrc */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DrawablePtr /*pDst */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*srcx */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*srcy */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*w */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*h */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*dstx */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*dsty */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync RegionPtr (*CopyPlane) (DrawablePtr /*pSrcDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DrawablePtr /*pDstDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*srcx */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*srcy */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*width */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*height */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*dstx */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*dsty */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long /*bitPlane */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolyPoint) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*mode */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*npt */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointPtr /*pptInit */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*Polylines) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*mode */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*npt */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointPtr /*pptInit */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolySegment) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*nseg */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync xSegment * /*pSegs */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolyRectangle) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*nrects */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync xRectangle * /*pRects */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolyArc) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*narcs */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync xArc * /*parcs */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*FillPolygon) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*shape */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*mode */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*count */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointPtr /*pPts */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolyFillRect) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*nrectFill */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync xRectangle * /*prectInit */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolyFillArc) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*narcs */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync xArc * /*parcs */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync int (*PolyText8) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*count */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync char * /*chars */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync int (*PolyText16) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*count */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned short * /*chars */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*ImageText8) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*count */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync char * /*chars */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*ImageText16) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*count */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned short * /*chars */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*ImageGlyphBlt) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int /*nglyph */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync CharInfoPtr * /*ppci */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync pointer /*pglyphBase */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PolyGlyphBlt) (DrawablePtr /*pDrawable */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int /*nglyph */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync CharInfoPtr * /*ppci */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync pointer /*pglyphBase */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync void (*PushPixels) (GCPtr /*pGC */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync PixmapPtr /*pBitMap */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync DrawablePtr /*pDst */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*w */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*h */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*x */ ,
65fea56f17cd614bc8908264df980a62e1931468vboxsync int /*y */ );
65fea56f17cd614bc8908264df980a62e1931468vboxsync} GCOps;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync/* there is padding in the bit fields because the Sun compiler doesn't
65fea56f17cd614bc8908264df980a62e1931468vboxsync * force alignment to 32-bit boundaries. losers.
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsynctypedef struct _GC {
65fea56f17cd614bc8908264df980a62e1931468vboxsync ScreenPtr pScreen;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned char depth;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned char alu;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned short lineWidth;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned short dashOffset;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned short numInDashList;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned char *dash;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int lineStyle:2;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int capStyle:2;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int joinStyle:2;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int fillStyle:2;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int fillRule:1;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int arcMode:1;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int subWindowMode:1;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int graphicsExposures:1;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int clientClipType:2; /* CT_<kind> */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int miTranslate:1; /* should mi things translate? */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int tileIsPixel:1; /* tile is solid pixel */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int fExpose:1; /* Call exposure handling */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int freeCompClip:1; /* Free composite clip */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int scratch_inuse:1; /* is this GC in a pool for reuse? */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned int unused:13; /* see comment above */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long planemask;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long fgPixel;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long bgPixel;
65fea56f17cd614bc8908264df980a62e1931468vboxsync /*
65fea56f17cd614bc8908264df980a62e1931468vboxsync * alas -- both tile and stipple must be here as they
65fea56f17cd614bc8908264df980a62e1931468vboxsync * are independently specifiable
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync PixUnion tile;
65fea56f17cd614bc8908264df980a62e1931468vboxsync PixmapPtr stipple;
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointRec patOrg; /* origin for (tile, stipple) */
65fea56f17cd614bc8908264df980a62e1931468vboxsync struct _Font *font;
65fea56f17cd614bc8908264df980a62e1931468vboxsync DDXPointRec clipOrg;
65fea56f17cd614bc8908264df980a62e1931468vboxsync pointer clientClip;
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long stateChanges; /* masked with GC_<kind> */
65fea56f17cd614bc8908264df980a62e1931468vboxsync unsigned long serialNumber;
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCFuncs *funcs;
65fea56f17cd614bc8908264df980a62e1931468vboxsync GCOps *ops;
65fea56f17cd614bc8908264df980a62e1931468vboxsync PrivateRec *devPrivates;
65fea56f17cd614bc8908264df980a62e1931468vboxsync /*
65fea56f17cd614bc8908264df980a62e1931468vboxsync * The following were moved here from private storage to allow device-
65fea56f17cd614bc8908264df980a62e1931468vboxsync * independent access to them from screen wrappers.
65fea56f17cd614bc8908264df980a62e1931468vboxsync * --- 1997.11.03 Marc Aurele La France (tsi@xfree86.org)
65fea56f17cd614bc8908264df980a62e1931468vboxsync */
65fea56f17cd614bc8908264df980a62e1931468vboxsync PixmapPtr pRotatedPixmap; /* tile/stipple rotated for alignment */
65fea56f17cd614bc8908264df980a62e1931468vboxsync RegionPtr pCompositeClip;
65fea56f17cd614bc8908264df980a62e1931468vboxsync /* fExpose & freeCompClip defined above */
65fea56f17cd614bc8908264df980a62e1931468vboxsync} GC;
65fea56f17cd614bc8908264df980a62e1931468vboxsync
65fea56f17cd614bc8908264df980a62e1931468vboxsync#endif /* GCSTRUCT_H */