b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/***********************************************************
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCopyright 1987, 1998 The Open Group
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncthe above copyright notice appear in all copies and that both that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynccopyright notice and this permission notice appear in supporting
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdocumentation.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncThe above copyright notice and this permission notice shall be included in
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncall copies or substantial portions of the Software.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncExcept as contained in this notice, the name of The Open Group shall not be
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncused in advertising or otherwise to promote the sale, use or other dealings
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncin this Software without prior written authorization from The Open Group.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncCopyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync All Rights Reserved
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncPermission to use, copy, modify, and distribute this software and its
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncdocumentation for any purpose and without fee is hereby granted,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncprovided that the above copyright notice appear in all copies and that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncboth that copyright notice and this permission notice appear in
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncsupporting documentation, and that the name of Digital not be
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncused in advertising or publicity pertaining to distribution of the
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncsoftware without specific, written prior permission.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncDIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncDIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncWHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncSOFTWARE.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync******************************************************************/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#ifndef SCREENINTSTRUCT_H
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define SCREENINTSTRUCT_H
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "screenint.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "regionstr.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "bstore.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "colormap.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "cursor.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "validate.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include <X11/Xproto.h>
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "dix.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#include "privates.h"
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _PixmapFormat {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char depth;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char bitsPerPixel;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char scanlinePad;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync } PixmapFormatRec;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _Visual {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VisualID vid;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short class;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short bitsPerRGBValue;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short ColormapEntries;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short nplanes;/* = log2 (ColormapEntries). This does not
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * imply that the screen has this many planes.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * it may have more or fewer */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long redMask, greenMask, blueMask;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int offsetRed, offsetGreen, offsetBlue;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync } VisualRec;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _Depth {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char depth;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short numVids;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VisualID *vids; /* block of visual ids for this depth */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync } DepthRec;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/*
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * There is a typedef for each screen function pointer so that code that
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * needs to declare a screen function pointer (e.g. in a screen private
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * or as a local variable) can easily do so and retain full type checking.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* CloseScreenProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*index*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* QueryBestSizeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*class*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short * /*pwidth*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short * /*pheight*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* SaveScreenProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*on*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* GetImageProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawablePtr /*pDrawable*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*sx*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*sy*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*w*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*h*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int /*format*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long /*planeMask*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync char * /*pdstLine*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* GetSpansProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawablePtr /*pDrawable*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*wMax*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DDXPointPtr /*ppt*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int* /*pwidth*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*nspans*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync char * /*pdstStart*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* PointerNonInterestBoxProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /*pDev*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync BoxPtr /*pBox*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* SourceValidateProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawablePtr /*pDrawable*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*width*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*height*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* CreateWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* DestroyWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* PositionWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* ChangeWindowAttributesProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long /*mask*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* RealizeWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* UnrealizeWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* RestackWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pOldNextSib*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef int (* ValidateTreeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pParent*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pChild*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VTKind /*kind*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* PostValidateTreeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pParent*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pChild*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VTKind /*kind*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* WindowExposuresProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*prgn*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*other_exposed*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* PaintWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*pRegion*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*what*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef PaintWindowProcPtr PaintWindowBackgroundProcPtr;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef PaintWindowProcPtr PaintWindowBorderProcPtr;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* CopyWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DDXPointRec /*ptOldOrg*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*prgnSrc*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ClearToBackgroundProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*w*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*h*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool /*generateExposures*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ClipNotifyProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*dx*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*dy*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* pixmap will exist only for the duration of the current rendering operation */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define CREATE_PIXMAP_USAGE_SCRATCH 1
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* pixmap will be the backing pixmap for a redirected window */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define CREATE_PIXMAP_USAGE_BACKING_PIXMAP 2
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync/* pixmap will contain a glyph */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#define CREATE_PIXMAP_USAGE_GLYPH_PICTURE 3
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef PixmapPtr (* CreatePixmapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*width*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*height*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*depth*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned /*usage_hint*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* DestroyPixmapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr /*pPixmap*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* SaveDoomedAreasProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*prgnSave*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*xorg*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*yorg*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef RegionPtr (* RestoreAreasProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*prgnRestore*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ExposeCopyProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pSrc*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawablePtr /*pDst*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GCPtr /*pGC*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*prgnExposed*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*srcx*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*srcy*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*dstx*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*dsty*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long /*plane*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef RegionPtr (* TranslateBackingStoreProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*windx*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*windy*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*oldClip*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*oldx*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*oldy*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef RegionPtr (* ClearBackingStoreProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*w*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*h*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool /*generateExposures*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* DrawGuaranteeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWindow*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GCPtr /*pGC*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*guarantee*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* RealizeFontProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync FontPtr /*pFont*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* UnrealizeFontProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync FontPtr /*pFont*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ConstrainCursorProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /*pDev*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync BoxPtr /*pBox*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* CursorLimitsProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr /*pCursor*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync BoxPtr /*pHotBox*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync BoxPtr /*pTopLeftBox*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* DisplayCursorProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr /*pCursor*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* RealizeCursorProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr /*pCursor*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* UnrealizeCursorProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr /*pCursor*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* RecolorCursorProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorPtr /*pCursor*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool /*displayed*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* SetCursorPositionProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool /*generateEvent*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* CreateGCProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GCPtr /*pGC*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* CreateColormapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ColormapPtr /*pColormap*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* DestroyColormapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ColormapPtr /*pColormap*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* InstallColormapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ColormapPtr /*pColormap*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* UninstallColormapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ColormapPtr /*pColormap*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef int (* ListInstalledColormapsProcPtr) (
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync XID* /*pmaps */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* StoreColorsProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ColormapPtr /*pColormap*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*ndef*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync xColorItem * /*pdef*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ResolveColorProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short* /*pred*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short* /*pgreen*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned short* /*pblue*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VisualPtr /*pVisual*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef RegionPtr (* BitmapToRegionProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr /*pPix*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* SendGraphicsExposeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ClientPtr /*client*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RegionPtr /*pRgn*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync XID /*drawable*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*major*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*minor*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ScreenBlockHandlerProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*screenNum*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer /*blockData*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer /*pTimeout*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer /*pReadmask*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ScreenWakeupHandlerProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*screenNum*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer /*wakeupData*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long /*result*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer /*pReadMask*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* CreateScreenResourcesProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* ModifyPixmapHeaderProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr /*pPixmap*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*width*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*height*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*depth*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*bitsPerPixel*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*devKind*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer /*pPixData*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef PixmapPtr (* GetWindowPixmapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* SetWindowPixmapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr /*pPix*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef PixmapPtr (* GetScreenPixmapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /*pScreen*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* SetScreenPixmapProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr /*pPix*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* MarkWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* MarkOverlappedWindowsProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*parent*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*firstChild*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr * /*pLayerWin*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* ChangeSaveUnderProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pLayerWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*firstChild*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* PostChangeSaveUnderProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pLayerWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*firstChild*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ConfigNotifyProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*w*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*h*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*bw*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pSib*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* MoveWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pSib*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VTKind /*kind*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ResizeWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*x*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*y*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int /*w*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int /*h*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pSib*/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef WindowPtr (* GetLayerWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* HandleExposuresProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ReparentWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pPriorParent*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* SetShapeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* ChangeBorderWidthProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int /*width*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* MarkUnrealizedWindowProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pChild*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowPtr /*pWin*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync Bool /*fromConfigure*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef Bool (* DeviceCursorInitializeProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /* pScreen */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef void (* DeviceCursorCleanupProcPtr)(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceIntPtr /* pDev */,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr /* pScreen */);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _Screen {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int myNum; /* index of this instance in Screens[] */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ATOM id;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short width, height;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short mmWidth, mmHeight;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short numDepths;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned char rootDepth;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DepthPtr allowedDepths;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long rootVisual;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long defColormap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short minInstalledCmaps, maxInstalledCmaps;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync char backingStoreSupport, saveUnderSupport;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long whitePixel, blackPixel;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned long rgf; /* array of flags; she's -- HUNGARIAN */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GCPtr GCperDepth[MAXFORMATS+1];
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* next field is a stipple to use as default in
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync a GC. we don't build default tiles of all depths
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync because they are likely to be of a color
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync different from the default fg pixel, so
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync we don't win anything by building
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync a standard one.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr PixmapPerDepth[1];
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer devPrivate;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync short numVisuals;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync VisualPtr visuals;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Random screen procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CloseScreenProcPtr CloseScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync QueryBestSizeProcPtr QueryBestSize;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SaveScreenProcPtr SaveScreen;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GetImageProcPtr GetImage;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GetSpansProcPtr GetSpans;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PointerNonInterestBoxProcPtr PointerNonInterestBox;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SourceValidateProcPtr SourceValidate;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Window Procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CreateWindowProcPtr CreateWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DestroyWindowProcPtr DestroyWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PositionWindowProcPtr PositionWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ChangeWindowAttributesProcPtr ChangeWindowAttributes;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RealizeWindowProcPtr RealizeWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync UnrealizeWindowProcPtr UnrealizeWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ValidateTreeProcPtr ValidateTree;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PostValidateTreeProcPtr PostValidateTree;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync WindowExposuresProcPtr WindowExposures;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PaintWindowBackgroundProcPtr PaintWindowBackground; /** unused */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PaintWindowBorderProcPtr PaintWindowBorder; /** unused */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CopyWindowProcPtr CopyWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ClearToBackgroundProcPtr ClearToBackground;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ClipNotifyProcPtr ClipNotify;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RestackWindowProcPtr RestackWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Pixmap procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CreatePixmapProcPtr CreatePixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DestroyPixmapProcPtr DestroyPixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Backing store procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SaveDoomedAreasProcPtr SaveDoomedAreas;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RestoreAreasProcPtr RestoreAreas;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ExposeCopyProcPtr ExposeCopy;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync TranslateBackingStoreProcPtr TranslateBackingStore;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ClearBackingStoreProcPtr ClearBackingStore;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DrawGuaranteeProcPtr DrawGuarantee;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /*
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * A read/write copy of the lower level backing store vector is needed now
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync * that the functions can be wrapped.
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync BSFuncRec BackingStoreFuncs;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Font procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RealizeFontProcPtr RealizeFont;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync UnrealizeFontProcPtr UnrealizeFont;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Cursor Procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ConstrainCursorProcPtr ConstrainCursor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CursorLimitsProcPtr CursorLimits;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DisplayCursorProcPtr DisplayCursor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RealizeCursorProcPtr RealizeCursor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync UnrealizeCursorProcPtr UnrealizeCursor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync RecolorCursorProcPtr RecolorCursor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SetCursorPositionProcPtr SetCursorPosition;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* GC procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CreateGCProcPtr CreateGC;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Colormap procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CreateColormapProcPtr CreateColormap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DestroyColormapProcPtr DestroyColormap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync InstallColormapProcPtr InstallColormap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync UninstallColormapProcPtr UninstallColormap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ListInstalledColormapsProcPtr ListInstalledColormaps;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync StoreColorsProcPtr StoreColors;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ResolveColorProcPtr ResolveColor;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Region procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync BitmapToRegionProcPtr BitmapToRegion;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SendGraphicsExposeProcPtr SendGraphicsExpose;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* os layer procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenBlockHandlerProcPtr BlockHandler;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenWakeupHandlerProcPtr WakeupHandler;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer blockData;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync pointer wakeupData;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* anybody can get a piece of this array */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PrivateRec *devPrivates;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync CreateScreenResourcesProcPtr CreateScreenResources;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GetWindowPixmapProcPtr GetWindowPixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SetWindowPixmapProcPtr SetWindowPixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GetScreenPixmapProcPtr GetScreenPixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SetScreenPixmapProcPtr SetScreenPixmap;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapPtr pScratchPixmap; /* scratch pixmap "pool" */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync unsigned int totalPixmapSize;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync MarkWindowProcPtr MarkWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync MarkOverlappedWindowsProcPtr MarkOverlappedWindows;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ChangeSaveUnderProcPtr ChangeSaveUnder;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PostChangeSaveUnderProcPtr PostChangeSaveUnder;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ConfigNotifyProcPtr ConfigNotify;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync MoveWindowProcPtr MoveWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ResizeWindowProcPtr ResizeWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync GetLayerWindowProcPtr GetLayerWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync HandleExposuresProcPtr HandleExposures;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ReparentWindowProcPtr ReparentWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync SetShapeProcPtr SetShape;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ChangeBorderWidthProcPtr ChangeBorderWidth;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync MarkUnrealizedWindowProcPtr MarkUnrealizedWindow;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync /* Device cursor procedures */
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceCursorInitializeProcPtr DeviceCursorInitialize;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync DeviceCursorCleanupProcPtr DeviceCursorCleanup;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} ScreenRec;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsynctypedef struct _ScreenInfo {
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int imageByteOrder;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int bitmapScanlineUnit;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int bitmapScanlinePad;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int bitmapBitOrder;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int numPixmapFormats;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync PixmapFormatRec
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync formats[MAXFORMATS];
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int arraySize;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int numScreens;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenPtr screens[MAXSCREENS];
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int unused;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync} ScreenInfo;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT ScreenInfo screenInfo;
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsyncextern _X_EXPORT void InitOutput(
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync ScreenInfo * /*pScreenInfo*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync int /*argc*/,
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync char ** /*argv*/);
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync
b9a21c3c91c47e090316e28d759194e46628ed49vboxsync#endif /* SCREENINTSTRUCT_H */