First import
[xorg_rtime.git] / xorg-server-1.4 / include / bstorestr.h
blob14e2fe1dace0fcab3fa1c6cca99223c0b5c7d2dd
1 /*
2 * Copyright (c) 1987 by the Regents of the University of California
4 * Permission to use, copy, modify, and distribute this software and its
5 * documentation for any purpose and without fee is hereby granted, provided
6 * that the above copyright notice appear in all copies. The University of
7 * California makes no representations about the suitability of this software
8 * for any purpose. It is provided "as is" without express or implied
9 * warranty.
13 * Moved here from mi to allow wrapping of lower level backing store functions.
14 * -- 1997.10.27 Marc Aurele La France (tsi@xfree86.org)
17 #ifndef _BSTORESTR_H_
18 #define _BSTORESTR_H_
20 #include "gc.h"
21 #include "pixmap.h"
22 #include "region.h"
23 #include "window.h"
25 typedef void (* BackingStoreSaveAreasProcPtr)(
26 PixmapPtr /*pBackingPixmap*/,
27 RegionPtr /*pObscured*/,
28 int /*x*/,
29 int /*y*/,
30 WindowPtr /*pWin*/);
32 typedef void (* BackingStoreRestoreAreasProcPtr)(
33 PixmapPtr /*pBackingPixmap*/,
34 RegionPtr /*pExposed*/,
35 int /*x*/,
36 int /*y*/,
37 WindowPtr /*pWin*/);
39 typedef void (* BackingStoreSetClipmaskRgnProcPtr)(
40 GCPtr /*pBackingGC*/,
41 RegionPtr /*pbackingCompositeClip*/);
43 typedef PixmapPtr (* BackingStoreGetImagePixmapProcPtr)(void);
45 typedef PixmapPtr (* BackingStoreGetSpansPixmapProcPtr)(void);
47 typedef struct _BSFuncs {
49 BackingStoreSaveAreasProcPtr SaveAreas;
50 BackingStoreRestoreAreasProcPtr RestoreAreas;
51 BackingStoreSetClipmaskRgnProcPtr SetClipmaskRgn;
52 BackingStoreGetImagePixmapProcPtr GetImagePixmap;
53 BackingStoreGetSpansPixmapProcPtr GetSpansPixmap;
55 } BSFuncRec, *BSFuncPtr;
57 #endif /* _BSTORESTR_H_ */