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