VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.6.5/window.h@ 62489

Last change on this file since 62489 was 49174, checked in by vboxsync, 11 years ago

Additions/x11: replace header files for X.Org Server 1.6.0 with those for version 1.6.5 due to an ABI bump in-between.

  • Property svn:eol-style set to native
File size: 6.9 KB
Line 
1/***********************************************************
2
3Copyright 1987, 1998 The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
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 THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25
26Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
27
28 All Rights Reserved
29
30Permission to use, copy, modify, and distribute this software and its
31documentation for any purpose and without fee is hereby granted,
32provided that the above copyright notice appear in all copies and that
33both that copyright notice and this permission notice appear in
34supporting documentation, and that the name of Digital not be
35used in advertising or publicity pertaining to distribution of the
36software without specific, written prior permission.
37
38DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
39ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
40DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
41ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
42WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
43ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
44SOFTWARE.
45
46******************************************************************/
47
48#ifndef WINDOW_H
49#define WINDOW_H
50
51#include "misc.h"
52#include "region.h"
53#include "screenint.h"
54#include <X11/Xproto.h>
55
56#define TOTALLY_OBSCURED 0
57#define UNOBSCURED 1
58#define OBSCURED 2
59
60#define VisibilityNotViewable 3
61
62/* return values for tree-walking callback procedures */
63#define WT_STOPWALKING 0
64#define WT_WALKCHILDREN 1
65#define WT_DONTWALKCHILDREN 2
66#define WT_NOMATCH 3
67#define NullWindow ((WindowPtr) 0)
68
69/* Forward declaration, we can't include input.h here */
70struct _DeviceIntRec;
71struct _Cursor;
72
73typedef struct _BackingStore *BackingStorePtr;
74typedef struct _Window *WindowPtr;
75
76typedef int (*VisitWindowProcPtr)(
77 WindowPtr /*pWin*/,
78 pointer /*data*/);
79
80extern int TraverseTree(
81 WindowPtr /*pWin*/,
82 VisitWindowProcPtr /*func*/,
83 pointer /*data*/);
84
85extern int WalkTree(
86 ScreenPtr /*pScreen*/,
87 VisitWindowProcPtr /*func*/,
88 pointer /*data*/);
89
90extern Bool CreateRootWindow(
91 ScreenPtr /*pScreen*/);
92
93extern void InitRootWindow(
94 WindowPtr /*pWin*/);
95
96typedef WindowPtr (* RealChildHeadProc) (WindowPtr pWin);
97
98void RegisterRealChildHeadProc (RealChildHeadProc proc);
99
100extern WindowPtr RealChildHead(
101 WindowPtr /*pWin*/);
102
103extern WindowPtr CreateWindow(
104 Window /*wid*/,
105 WindowPtr /*pParent*/,
106 int /*x*/,
107 int /*y*/,
108 unsigned int /*w*/,
109 unsigned int /*h*/,
110 unsigned int /*bw*/,
111 unsigned int /*class*/,
112 Mask /*vmask*/,
113 XID* /*vlist*/,
114 int /*depth*/,
115 ClientPtr /*client*/,
116 VisualID /*visual*/,
117 int* /*error*/);
118
119extern int DeleteWindow(
120 pointer /*pWin*/,
121 XID /*wid*/);
122
123extern int DestroySubwindows(
124 WindowPtr /*pWin*/,
125 ClientPtr /*client*/);
126
127/* Quartz support on Mac OS X uses the HIToolbox
128 framework whose ChangeWindowAttributes function conflicts here. */
129#ifdef __APPLE__
130#define ChangeWindowAttributes Darwin_X_ChangeWindowAttributes
131#endif
132extern int ChangeWindowAttributes(
133 WindowPtr /*pWin*/,
134 Mask /*vmask*/,
135 XID* /*vlist*/,
136 ClientPtr /*client*/);
137
138extern int ChangeWindowDeviceCursor(
139 WindowPtr /*pWin*/,
140 struct _DeviceIntRec* /*pDev*/,
141 struct _Cursor* /*pCursor*/);
142
143extern struct _Cursor* WindowGetDeviceCursor(
144 WindowPtr /*pWin*/,
145 struct _DeviceIntRec* /*pDev*/);
146
147/* Quartz support on Mac OS X uses the HIToolbox
148 framework whose GetWindowAttributes function conflicts here. */
149#ifdef __APPLE__
150#define GetWindowAttributes(w,c,x) Darwin_X_GetWindowAttributes(w,c,x)
151extern void Darwin_X_GetWindowAttributes(
152#else
153extern void GetWindowAttributes(
154#endif
155 WindowPtr /*pWin*/,
156 ClientPtr /*client*/,
157 xGetWindowAttributesReply* /* wa */);
158
159extern RegionPtr CreateUnclippedWinSize(
160 WindowPtr /*pWin*/);
161
162extern void GravityTranslate(
163 int /*x*/,
164 int /*y*/,
165 int /*oldx*/,
166 int /*oldy*/,
167 int /*dw*/,
168 int /*dh*/,
169 unsigned /*gravity*/,
170 int* /*destx*/,
171 int* /*desty*/);
172
173extern int ConfigureWindow(
174 WindowPtr /*pWin*/,
175 Mask /*mask*/,
176 XID* /*vlist*/,
177 ClientPtr /*client*/);
178
179extern int CirculateWindow(
180 WindowPtr /*pParent*/,
181 int /*direction*/,
182 ClientPtr /*client*/);
183
184extern int ReparentWindow(
185 WindowPtr /*pWin*/,
186 WindowPtr /*pParent*/,
187 int /*x*/,
188 int /*y*/,
189 ClientPtr /*client*/);
190
191extern int MapWindow(
192 WindowPtr /*pWin*/,
193 ClientPtr /*client*/);
194
195extern void MapSubwindows(
196 WindowPtr /*pParent*/,
197 ClientPtr /*client*/);
198
199extern int UnmapWindow(
200 WindowPtr /*pWin*/,
201 Bool /*fromConfigure*/);
202
203extern void UnmapSubwindows(
204 WindowPtr /*pWin*/);
205
206extern void HandleSaveSet(
207 ClientPtr /*client*/);
208
209extern Bool PointInWindowIsVisible(
210 WindowPtr /*pWin*/,
211 int /*x*/,
212 int /*y*/);
213
214extern RegionPtr NotClippedByChildren(
215 WindowPtr /*pWin*/);
216
217extern void SendVisibilityNotify(
218 WindowPtr /*pWin*/);
219
220extern int dixSaveScreens(
221 ClientPtr client,
222 int on,
223 int mode);
224
225extern int SaveScreens(
226 int on,
227 int mode);
228
229extern WindowPtr FindWindowWithOptional(
230 WindowPtr /*w*/);
231
232extern void CheckWindowOptionalNeed(
233 WindowPtr /*w*/);
234
235extern Bool MakeWindowOptional(
236 WindowPtr /*pWin*/);
237
238extern WindowPtr MoveWindowInStack(
239 WindowPtr /*pWin*/,
240 WindowPtr /*pNextSib*/);
241
242void SetWinSize(
243 WindowPtr /*pWin*/);
244
245void SetBorderSize(
246 WindowPtr /*pWin*/);
247
248void ResizeChildrenWinSize(
249 WindowPtr /*pWin*/,
250 int /*dx*/,
251 int /*dy*/,
252 int /*dw*/,
253 int /*dh*/);
254
255extern void ShapeExtensionInit(void);
256
257extern void SendShapeNotify(
258 WindowPtr /* pWin */,
259 int /* which */ );
260
261extern RegionPtr CreateBoundingShape(
262 WindowPtr /* pWin */ );
263
264extern RegionPtr CreateClipShape(
265 WindowPtr /* pWin */ );
266
267extern void DisableMapUnmapEvents(
268 WindowPtr /* pWin */ );
269extern void EnableMapUnmapEvents(
270 WindowPtr /* pWin */ );
271
272#endif /* WINDOW_H */
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