]> git.sesse.net Git - rdpsrv/blob - Xserver/programs/Xserver/mi/mibstore.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / programs / Xserver / mi / mibstore.h
1 /*-
2  * mibstore.h --
3  *      Header file for users of the MI backing-store scheme.
4  *
5  * Copyright (c) 1987 by the Regents of the University of California
6  *
7  * Permission to use, copy, modify, and distribute this
8  * software and its documentation for any purpose and without
9  * fee is hereby granted, provided that the above copyright
10  * notice appear in all copies.  The University of California
11  * makes no representations about the suitability of this
12  * software for any purpose.  It is provided "as is" without
13  * express or implied warranty.
14  *
15  *      "$XConsortium: mibstore.h,v 5.2 93/10/12 11:41:12 dpw Exp $ SPRITE (Berkeley)"
16  */
17
18
19 /* $XFree86: xc/programs/Xserver/mi/mibstore.h,v 1.2 1997/01/08 20:52:06 dawes Exp $ */
20
21 #ifndef _MIBSTORE_H
22 #define _MIBSTORE_H
23
24 typedef struct _miBSFuncRec {
25     void            (*SaveAreas)(
26 #if NeedNestedPrototypes
27                     PixmapPtr /*pBackingPixmap*/,
28                     RegionPtr /*pObscured*/,
29                     int /*x*/,
30                     int /*y*/,
31                     WindowPtr /*pWin*/
32 #endif
33 );
34     void            (*RestoreAreas)(
35 #if NeedNestedPrototypes
36                     PixmapPtr /*pBackingPixmap*/,
37                     RegionPtr /*pExposed*/,
38                     int /*x*/,
39                     int /*y*/,
40                     WindowPtr /*pWin*/
41 #endif
42 );
43     void            (*SetClipmaskRgn)(
44 #if NeedNestedPrototypes
45                     GCPtr /*pBackingGC*/,
46                     RegionPtr /*pbackingCompositeClip*/
47 #endif
48 );
49     PixmapPtr       (*GetImagePixmap)(  /* unused */
50 #if NeedNestedPrototypes
51                         void
52 #endif
53 );
54     PixmapPtr       (*GetSpansPixmap)(  /* unused */
55 #if NeedNestedPrototypes
56                         void
57 #endif
58 );
59 } miBSFuncRec;
60
61 #ifndef _XTYPEDEF_MIBSFUNCPTR
62 typedef struct _miBSFuncRec *miBSFuncPtr;
63 #define _XTYPEDEF_MIBSFUNCPTR
64 #endif
65
66 extern void miInitializeBackingStore(
67 #if NeedFunctionPrototypes
68     ScreenPtr /*pScreen*/,
69     miBSFuncPtr /*funcs*/
70 #endif
71 );
72
73 #endif /* _MIBSTORE_H */