VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.6.99-20090831/panoramiX.h@ 37801

最後變更 在這個檔案從37801是 22658,由 vboxsync 提交於 15 年 前

export Xorg 1.6.99 headers to OSE

  • 屬性 svn:eol-style 設為 native
檔案大小: 2.9 KB
 
1/*****************************************************************
2
3Copyright (c) 1991, 1997 Digital Equipment Corporation, Maynard, Massachusetts.
4
5Permission is hereby granted, free of charge, to any person obtaining a copy
6of this software and associated documentation files (the "Software"), to deal
7in the Software without restriction, including without limitation the rights
8to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9copies of the Software.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17DIGITAL EQUIPMENT CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES, INCLUDING,
18BUT NOT LIMITED TO CONSEQUENTIAL OR INCIDENTAL DAMAGES, OR OTHER LIABILITY,
19WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
20IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22Except as contained in this notice, the name of Digital Equipment Corporation
23shall not be used in advertising or otherwise to promote the sale, use or other
24dealings in this Software without prior written authorization from Digital
25Equipment Corporation.
26
27******************************************************************/
28
29
30/* THIS IS NOT AN X PROJECT TEAM SPECIFICATION */
31
32/*
33 * PanoramiX definitions
34 */
35
36#ifdef HAVE_DIX_CONFIG_H
37#include <dix-config.h>
38#endif
39
40#ifndef _PANORAMIX_H_
41#define _PANORAMIX_H_
42
43#define _PANORAMIX_SERVER
44#include <X11/extensions/panoramiXproto.h>
45#undef _PANORAMIX_SERVER
46#include "gcstruct.h"
47
48
49typedef struct _PanoramiXData {
50 int x;
51 int y;
52 int width;
53 int height;
54} PanoramiXData;
55
56typedef struct _PanoramiXInfo {
57 XID id ;
58} PanoramiXInfo;
59
60typedef struct {
61 PanoramiXInfo info[MAXSCREENS];
62 RESTYPE type;
63 union {
64 struct {
65 char visibility;
66 char class;
67 char root;
68 } win;
69 struct {
70 Bool shared;
71 } pix;
72#ifdef RENDER
73 struct {
74 Bool root;
75 } pict;
76#endif
77 char raw_data[4];
78 } u;
79} PanoramiXRes;
80
81#define FOR_NSCREENS_FORWARD(j) for(j = 0; j < PanoramiXNumScreens; j++)
82#define FOR_NSCREENS_BACKWARD(j) for(j = PanoramiXNumScreens - 1; j >= 0; j--)
83#define FOR_NSCREENS(j) FOR_NSCREENS_FORWARD(j)
84
85#define BREAK_IF(a) if ((a)) break
86#define IF_RETURN(a,b) if ((a)) return (b)
87
88#define FORCE_ROOT(a) { \
89 int _j; \
90 for (_j = PanoramiXNumScreens - 1; _j; _j--) \
91 if ((a).root == WindowTable[_j]->drawable.id) \
92 break; \
93 (a).rootX += panoramiXdataPtr[_j].x; \
94 (a).rootY += panoramiXdataPtr[_j].y; \
95 (a).root = WindowTable[0]->drawable.id; \
96}
97
98#define IS_SHARED_PIXMAP(r) (((r)->type == XRT_PIXMAP) && (r)->u.pix.shared)
99
100#endif /* _PANORAMIX_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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