b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * mibstorest.h
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync *
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * internal structure definitions for mi backing store
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $Xorg: mibstorest.h,v 1.4 2001/02/09 02:05:20 xorgcvs Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCopyright 1989, 1998 The Open Group
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncPermission to use, copy, modify, distribute, and sell this software and its
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncdocumentation for any purpose is hereby granted without fee, provided that
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncthe above copyright notice appear in all copies and that both that
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynccopyright notice and this permission notice appear in supporting
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncdocumentation.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncThe above copyright notice and this permission notice shall be included in
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncall copies or substantial portions of the Software.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncOPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncExcept as contained in this notice, the name of The Open Group shall not be
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncused in advertising or otherwise to promote the sale, use or other dealings
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsyncin this Software without prior written authorization from The Open Group.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync*/
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/* $XFree86: xc/programs/Xserver/mi/mibstorest.h,v 1.4 2001/01/17 22:37:06 dawes Exp $ */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#ifdef HAVE_DIX_CONFIG_H
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include <dix-config.h>
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#endif
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include "mibstore.h"
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#include "regionstr.h"
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * One of these structures is allocated per GC used with a backing-store
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * drawable.
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync GCPtr pBackingGC; /* Copy of the GC but with graphicsExposures
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * set FALSE and the clientClip set to
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * clip output to the valid regions of the
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * backing pixmap. */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync int guarantee; /* GuaranteeNothing, etc. */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long serialNumber; /* clientClip computed time */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync unsigned long stateChanges; /* changes in parent gc since last copy */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync GCOps *wrapOps; /* wrapped ops */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync GCFuncs *wrapFuncs; /* wrapped funcs */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} miBSGCRec, *miBSGCPtr;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync/*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * one of these structures is allocated per Window with backing store
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync PixmapPtr pBackingPixmap; /* Pixmap for saved areas */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync short x; /* origin of pixmap relative to window */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync short y;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync RegionRec SavedRegion; /* Valid area in pBackingPixmap */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char viewable; /* Tracks pWin->viewable so SavedRegion may
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * be initialized correctly when the window
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * is first mapped */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char status; /* StatusNoPixmap, etc. */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync char backgroundState; /* background type */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync PixUnion background; /* background pattern */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} miBSWindowRec, *miBSWindowPtr;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define StatusNoPixmap 1 /* pixmap has not been created */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define StatusVirtual 2 /* pixmap is virtual, tiled with background */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define StatusVDirty 3 /* pixmap is virtual, visiblt has contents */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define StatusBadAlloc 4 /* pixmap create failed, do not try again */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync#define StatusContents 5 /* pixmap is created, has valid contents */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsynctypedef struct {
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync /*
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync * screen func wrappers
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync */
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync CloseScreenProcPtr CloseScreen;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync GetImageProcPtr GetImage;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync GetSpansProcPtr GetSpans;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync ChangeWindowAttributesProcPtr ChangeWindowAttributes;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync CreateGCProcPtr CreateGC;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync DestroyWindowProcPtr DestroyWindow;
b8e299dddd091ae24e0c08c45d91b8f937bd14d2vboxsync} miBSScreenRec, *miBSScreenPtr;