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