VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.4.2/midbestr.h@ 78293

Last change on this file since 78293 was 43272, checked in by vboxsync, 12 years ago

Additions/x11: more original X server headers.

  • Property svn:eol-style set to native
File size: 3.6 KB
Line 
1/******************************************************************************
2 *
3 * Copyright (c) 1994, 1995 Hewlett-Packard Company
4 *
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:
12 *
13 * The above copyright notice and this permission notice shall be included
14 * in all copies or substantial portions of the Software.
15 *
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.
23 *
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.
28 *
29 * Header file for users of machine-independent DBE code
30 *
31 *****************************************************************************/
32
33
34#ifdef HAVE_DIX_CONFIG_H
35#include <dix-config.h>
36#endif
37
38#ifndef MIDBE_STRUCT_H
39#define MIDBE_STRUCT_H
40
41
42/* DEFINES */
43
44#define MI_DBE_WINDOW_PRIV_PRIV(pDbeWindowPriv) \
45 (((miDbeWindowPrivPrivIndex < 0) || (!pDbeWindowPriv)) ? \
46 NULL : \
47 ((MiDbeWindowPrivPrivPtr) \
48 ((pDbeWindowPriv)->devPrivates[miDbeWindowPrivPrivIndex].ptr)))
49
50#define MI_DBE_WINDOW_PRIV_PRIV_FROM_WINDOW(pWin)\
51 MI_DBE_WINDOW_PRIV_PRIV(DBE_WINDOW_PRIV(pWin))
52
53#define MI_DBE_SCREEN_PRIV_PRIV(pDbeScreenPriv) \
54 (((miDbeScreenPrivPrivIndex < 0) || (!pDbeScreenPriv)) ? \
55 NULL : \
56 ((MiDbeScreenPrivPrivPtr) \
57 ((pDbeScreenPriv)->devPrivates[miDbeScreenPrivPrivIndex].ptr)))
58
59
60/* TYPEDEFS */
61
62typedef struct _MiDbeWindowPrivPrivRec
63{
64 /* Place machine-specific fields in here.
65 * Since this is mi code, we do not really have machine-specific fields.
66 */
67
68 /* Pointer to a drawable that contains the contents of the back buffer.
69 */
70 PixmapPtr pBackBuffer;
71
72 /* Pointer to a drawable that contains the contents of the front buffer.
73 * This pointer is only used for the XdbeUntouched swap action. For that
74 * swap action, we need to copy the front buffer (window) contents into
75 * this drawable, copy the contents of current back buffer drawable (the
76 * back buffer) into the window, swap the front and back drawable pointers,
77 * and then swap the drawable/resource associations in the resource
78 * database.
79 */
80 PixmapPtr pFrontBuffer;
81
82 /* Pointer back to our window private with which we are associated. */
83 DbeWindowPrivPtr pDbeWindowPriv;
84
85} MiDbeWindowPrivPrivRec, *MiDbeWindowPrivPrivPtr;
86
87typedef struct _MiDbeScreenPrivPrivRec
88{
89 /* Place machine-specific fields in here.
90 * Since this is mi code, we do not really have machine-specific fields.
91 */
92
93 /* Pointer back to our screen private with which we are associated. */
94 DbeScreenPrivPtr pDbeScreenPriv;
95
96} MiDbeScreenPrivPrivRec, *MiDbeScreenPrivPrivPtr;
97
98#endif /* MIDBE_STRUCT_H */
99
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette