VirtualBox

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

最後變更 在這個檔案從61386是 51223,由 vboxsync 提交於 11 年 前

Additions/x11/x11include: added header files for X.Org Server 1.0 and 1.1.

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.6 KB
 
1/* $Xorg: midbestr.h,v 1.3 2000/08/17 19:48:16 cpqbld Exp $ */
2/******************************************************************************
3 *
4 * Copyright (c) 1994, 1995 Hewlett-Packard Company
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining
7 * a copy of this software and associated documentation files (the
8 * "Software"), to deal in the Software without restriction, including
9 * without limitation the rights to use, copy, modify, merge, publish,
10 * distribute, sublicense, and/or sell copies of the Software, and to
11 * permit persons to whom the Software is furnished to do so, subject to
12 * the following conditions:
13 *
14 * The above copyright notice and this permission notice shall be included
15 * in all copies or substantial portions of the Software.
16 *
17 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
18 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20 * IN NO EVENT SHALL HEWLETT-PACKARD COMPANY BE LIABLE FOR ANY CLAIM,
21 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
22 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
23 * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 *
25 * Except as contained in this notice, the name of the Hewlett-Packard
26 * Company shall not be used in advertising or otherwise to promote the
27 * sale, use or other dealings in this Software without prior written
28 * authorization from the Hewlett-Packard Company.
29 *
30 * Header file for users of machine-independent DBE code
31 *
32 *****************************************************************************/
33
34
35#ifdef HAVE_DIX_CONFIG_H
36#include <dix-config.h>
37#endif
38
39#ifndef MIDBE_STRUCT_H
40#define MIDBE_STRUCT_H
41
42
43/* DEFINES */
44
45#define MI_DBE_WINDOW_PRIV_PRIV(pDbeWindowPriv) \
46 (((miDbeWindowPrivPrivIndex < 0) || (!pDbeWindowPriv)) ? \
47 NULL : \
48 ((MiDbeWindowPrivPrivPtr) \
49 ((pDbeWindowPriv)->devPrivates[miDbeWindowPrivPrivIndex].ptr)))
50
51#define MI_DBE_WINDOW_PRIV_PRIV_FROM_WINDOW(pWin)\
52 MI_DBE_WINDOW_PRIV_PRIV(DBE_WINDOW_PRIV(pWin))
53
54#define MI_DBE_SCREEN_PRIV_PRIV(pDbeScreenPriv) \
55 (((miDbeScreenPrivPrivIndex < 0) || (!pDbeScreenPriv)) ? \
56 NULL : \
57 ((MiDbeScreenPrivPrivPtr) \
58 ((pDbeScreenPriv)->devPrivates[miDbeScreenPrivPrivIndex].ptr)))
59
60
61/* TYPEDEFS */
62
63typedef struct _MiDbeWindowPrivPrivRec
64{
65 /* Place machine-specific fields in here.
66 * Since this is mi code, we do not really have machine-specific fields.
67 */
68
69 /* Pointer to a drawable that contains the contents of the back buffer.
70 */
71 PixmapPtr pBackBuffer;
72
73 /* Pointer to a drawable that contains the contents of the front buffer.
74 * This pointer is only used for the XdbeUntouched swap action. For that
75 * swap action, we need to copy the front buffer (window) contents into
76 * this drawable, copy the contents of current back buffer drawable (the
77 * back buffer) into the window, swap the front and back drawable pointers,
78 * and then swap the drawable/resource associations in the resource
79 * database.
80 */
81 PixmapPtr pFrontBuffer;
82
83 /* Pointer back to our window private with which we are associated. */
84 DbeWindowPrivPtr pDbeWindowPriv;
85
86} MiDbeWindowPrivPrivRec, *MiDbeWindowPrivPrivPtr;
87
88typedef struct _MiDbeScreenPrivPrivRec
89{
90 /* Place machine-specific fields in here.
91 * Since this is mi code, we do not really have machine-specific fields.
92 */
93
94 /* Pointer back to our screen private with which we are associated. */
95 DbeScreenPrivPtr pDbeScreenPriv;
96
97} MiDbeScreenPrivPrivRec, *MiDbeScreenPrivPrivPtr;
98
99#endif /* MIDBE_STRUCT_H */
100
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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