1
/******************************************************************************
3
* Copyright (c) 1994, 1995 Hewlett-Packard Company
5
* Permission is hereby granted, free of charge, to any person obtaining
6
* a copy of this software and associated documentation files (the
7
* "Software"), to deal in the Software without restriction, including
8
* without limitation the rights to use, copy, modify, merge, publish,
9
* distribute, sublicense, and/or sell copies of the Software, and to
10
* permit persons to whom the Software is furnished to do so, subject to
11
* the following conditions:
13
* The above copyright notice and this permission notice shall be included
14
* in all copies or substantial portions of the Software.
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
* IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
20
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
21
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22
* THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
* Except as contained in this notice, the name of the Hewlett-Packard
25
* Company shall not be used in advertising or otherwise to promote the
26
* sale, use or other dealings in this Software without prior written
27
* authorization from the Hewlett-Packard Company.
29
* Header file for users of machine-independent DBE code
31
*****************************************************************************/
34
#ifdef HAVE_DIX_CONFIG_H
35
#include <dix-config.h>
38
#ifndef MIDBE_STRUCT_H
39
#define MIDBE_STRUCT_H
44
#define MI_DBE_WINDOW_PRIV_PRIV(pDbeWindowPriv) \
45
(!(pDbeWindowPriv) ? NULL : (MiDbeWindowPrivPrivPtr) \
46
dixLookupPrivate(&(pDbeWindowPriv)->devPrivates, miDbeWindowPrivPrivKey))
48
#define MI_DBE_WINDOW_PRIV_PRIV_FROM_WINDOW(pWin)\
49
MI_DBE_WINDOW_PRIV_PRIV(DBE_WINDOW_PRIV(pWin))
51
#define MI_DBE_SCREEN_PRIV_PRIV(pDbeScreenPriv) \
52
(!(pDbeScreenPriv) ? NULL : (MiDbeScreenPrivPrivPtr) \
53
dixLookupPrivate(&(pDbeScreenPriv)->devPrivates, miDbeScreenPrivPrivKey))
58
typedef struct _MiDbeWindowPrivPrivRec
60
/* Place machine-specific fields in here.
61
* Since this is mi code, we do not really have machine-specific fields.
64
/* Pointer to a drawable that contains the contents of the back buffer.
66
PixmapPtr pBackBuffer;
68
/* Pointer to a drawable that contains the contents of the front buffer.
69
* This pointer is only used for the XdbeUntouched swap action. For that
70
* swap action, we need to copy the front buffer (window) contents into
71
* this drawable, copy the contents of current back buffer drawable (the
72
* back buffer) into the window, swap the front and back drawable pointers,
73
* and then swap the drawable/resource associations in the resource
76
PixmapPtr pFrontBuffer;
78
/* Pointer back to our window private with which we are associated. */
79
DbeWindowPrivPtr pDbeWindowPriv;
81
} MiDbeWindowPrivPrivRec, *MiDbeWindowPrivPrivPtr;
83
typedef struct _MiDbeScreenPrivPrivRec
85
/* Place machine-specific fields in here.
86
* Since this is mi code, we do not really have machine-specific fields.
89
/* Pointer back to our screen private with which we are associated. */
90
DbeScreenPrivPtr pDbeScreenPriv;
92
} MiDbeScreenPrivPrivRec, *MiDbeScreenPrivPrivPtr;
94
#endif /* MIDBE_STRUCT_H */