4
* internal structure definitions for mi backing store
7
/* $Xorg: mibstorest.h,v 1.4 2001/02/09 02:05:20 xorgcvs Exp $ */
11
Copyright 1989, 1998 The Open Group
13
Permission to use, copy, modify, distribute, and sell this software and its
14
documentation for any purpose is hereby granted without fee, provided that
15
the above copyright notice appear in all copies and that both that
16
copyright notice and this permission notice appear in supporting
19
The above copyright notice and this permission notice shall be included in
20
all copies or substantial portions of the Software.
22
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
23
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
24
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
25
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
26
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
27
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29
Except as contained in this notice, the name of The Open Group shall not be
30
used in advertising or otherwise to promote the sale, use or other dealings
31
in this Software without prior written authorization from The Open Group.
34
/* $XFree86: xc/programs/Xserver/mi/mibstorest.h,v 1.5 2001/12/14 20:00:21 dawes Exp $ */
37
#include "regionstr.h"
40
* One of these structures is allocated per GC used with a backing-store
45
GCPtr pBackingGC; /* Copy of the GC but with graphicsExposures
46
* set FALSE and the clientClip set to
47
* clip output to the valid regions of the
49
int guarantee; /* GuaranteeNothing, etc. */
50
unsigned long serialNumber; /* clientClip computed time */
51
unsigned long stateChanges; /* changes in parent gc since last copy */
52
GCOps *wrapOps; /* wrapped ops */
53
GCFuncs *wrapFuncs; /* wrapped funcs */
54
} miBSGCRec, *miBSGCPtr;
57
* one of these structures is allocated per Window with backing store
61
PixmapPtr pBackingPixmap; /* Pixmap for saved areas */
62
short x; /* origin of pixmap relative to window */
64
RegionRec SavedRegion; /* Valid area in pBackingPixmap */
65
char viewable; /* Tracks pWin->viewable so SavedRegion may
66
* be initialized correctly when the window
68
char status; /* StatusNoPixmap, etc. */
69
char backgroundState; /* background type */
70
PixUnion background; /* background pattern */
71
} miBSWindowRec, *miBSWindowPtr;
73
#define StatusNoPixmap 1 /* pixmap has not been created */
74
#define StatusVirtual 2 /* pixmap is virtual, tiled with background */
75
#define StatusVDirty 3 /* pixmap is virtual, visiblt has contents */
76
#define StatusBadAlloc 4 /* pixmap create failed, do not try again */
77
#define StatusContents 5 /* pixmap is created, has valid contents */
81
* screen func wrappers
83
CloseScreenProcPtr CloseScreen;
84
GetImageProcPtr GetImage;
85
GetSpansProcPtr GetSpans;
86
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
87
CreateGCProcPtr CreateGC;
88
DestroyWindowProcPtr DestroyWindow;
89
} miBSScreenRec, *miBSScreenPtr;