VirtualBox

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

Last change on this file since 78406 was 25078, checked in by vboxsync, 15 years ago

Additions/x11/x11include: exported and set eol-style on new headers

  • Property svn:eol-style set to native
File size: 7.0 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/* $XFree86$ */
48
49#ifndef WINDOW_H
50#define WINDOW_H
51
52#include "misc.h"
53#include "region.h"
54#include "screenint.h"
55#include <X11/Xproto.h>
56
57#define TOTALLY_OBSCURED 0
58#define UNOBSCURED 1
59#define OBSCURED 2
60
61#define VisibilityNotViewable 3
62
63/* return values for tree-walking callback procedures */
64#define WT_STOPWALKING 0
65#define WT_WALKCHILDREN 1
66#define WT_DONTWALKCHILDREN 2
67#define WT_NOMATCH 3
68#define NullWindow ((WindowPtr) 0)
69
70typedef struct _BackingStore *BackingStorePtr;
71typedef struct _Window *WindowPtr;
72
73typedef int (*VisitWindowProcPtr)(
74 WindowPtr /*pWin*/,
75 pointer /*data*/);
76
77extern int TraverseTree(
78 WindowPtr /*pWin*/,
79 VisitWindowProcPtr /*func*/,
80 pointer /*data*/);
81
82extern int WalkTree(
83 ScreenPtr /*pScreen*/,
84 VisitWindowProcPtr /*func*/,
85 pointer /*data*/);
86
87extern WindowPtr AllocateWindow(
88 ScreenPtr /*pScreen*/);
89
90extern Bool CreateRootWindow(
91 ScreenPtr /*pScreen*/);
92
93extern void InitRootWindow(
94 WindowPtr /*pWin*/);
95
96extern void ClippedRegionFromBox(
97 WindowPtr /*pWin*/,
98 RegionPtr /*Rgn*/,
99 int /*x*/,
100 int /*y*/,
101 int /*w*/,
102 int /*h*/);
103
104typedef WindowPtr (* RealChildHeadProc) (WindowPtr pWin);
105
106void RegisterRealChildHeadProc (RealChildHeadProc proc);
107
108extern WindowPtr RealChildHead(
109 WindowPtr /*pWin*/);
110
111extern WindowPtr CreateWindow(
112 Window /*wid*/,
113 WindowPtr /*pParent*/,
114 int /*x*/,
115 int /*y*/,
116 unsigned int /*w*/,
117 unsigned int /*h*/,
118 unsigned int /*bw*/,
119 unsigned int /*class*/,
120 Mask /*vmask*/,
121 XID* /*vlist*/,
122 int /*depth*/,
123 ClientPtr /*client*/,
124 VisualID /*visual*/,
125 int* /*error*/);
126
127extern int DeleteWindow(
128 pointer /*pWin*/,
129 XID /*wid*/);
130
131extern void DestroySubwindows(
132 WindowPtr /*pWin*/,
133 ClientPtr /*client*/);
134
135/* Quartz support on Mac OS X uses the HIToolbox
136 framework whose ChangeWindowAttributes function conflicts here. */
137#ifdef __DARWIN__
138#define ChangeWindowAttributes Darwin_X_ChangeWindowAttributes
139#endif
140extern int ChangeWindowAttributes(
141 WindowPtr /*pWin*/,
142 Mask /*vmask*/,
143 XID* /*vlist*/,
144 ClientPtr /*client*/);
145
146/* Quartz support on Mac OS X uses the HIToolbox
147 framework whose GetWindowAttributes function conflicts here. */
148#ifdef __DARWIN__
149#define GetWindowAttributes(w,c,x) Darwin_X_GetWindowAttributes(w,c,x)
150extern void Darwin_X_GetWindowAttributes(
151#else
152extern void GetWindowAttributes(
153#endif
154 WindowPtr /*pWin*/,
155 ClientPtr /*client*/,
156 xGetWindowAttributesReply* /* wa */);
157
158extern RegionPtr CreateUnclippedWinSize(
159 WindowPtr /*pWin*/);
160
161extern void GravityTranslate(
162 int /*x*/,
163 int /*y*/,
164 int /*oldx*/,
165 int /*oldy*/,
166 int /*dw*/,
167 int /*dh*/,
168 unsigned /*gravity*/,
169 int* /*destx*/,
170 int* /*desty*/);
171
172extern int ConfigureWindow(
173 WindowPtr /*pWin*/,
174 Mask /*mask*/,
175 XID* /*vlist*/,
176 ClientPtr /*client*/);
177
178extern int CirculateWindow(
179 WindowPtr /*pParent*/,
180 int /*direction*/,
181 ClientPtr /*client*/);
182
183extern int ReparentWindow(
184 WindowPtr /*pWin*/,
185 WindowPtr /*pParent*/,
186 int /*x*/,
187 int /*y*/,
188 ClientPtr /*client*/);
189
190extern int MapWindow(
191 WindowPtr /*pWin*/,
192 ClientPtr /*client*/);
193
194extern void MapSubwindows(
195 WindowPtr /*pParent*/,
196 ClientPtr /*client*/);
197
198extern int UnmapWindow(
199 WindowPtr /*pWin*/,
200 Bool /*fromConfigure*/);
201
202extern void UnmapSubwindows(
203 WindowPtr /*pWin*/);
204
205extern void HandleSaveSet(
206 ClientPtr /*client*/);
207
208extern Bool VisibleBoundingBoxFromPoint(
209 WindowPtr /*pWin*/,
210 int /*x*/,
211 int /*y*/,
212 BoxPtr /*box*/);
213
214extern Bool PointInWindowIsVisible(
215 WindowPtr /*pWin*/,
216 int /*x*/,
217 int /*y*/);
218
219extern RegionPtr NotClippedByChildren(
220 WindowPtr /*pWin*/);
221
222extern void SendVisibilityNotify(
223 WindowPtr /*pWin*/);
224
225extern void 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 void DisposeWindowOptional(
239 WindowPtr /*pWin*/);
240
241extern WindowPtr MoveWindowInStack(
242 WindowPtr /*pWin*/,
243 WindowPtr /*pNextSib*/);
244
245void SetWinSize(
246 WindowPtr /*pWin*/);
247
248void SetBorderSize(
249 WindowPtr /*pWin*/);
250
251void ResizeChildrenWinSize(
252 WindowPtr /*pWin*/,
253 int /*dx*/,
254 int /*dy*/,
255 int /*dw*/,
256 int /*dh*/);
257
258extern void ShapeExtensionInit(void);
259
260extern void SendShapeNotify(
261 WindowPtr /* pWin */,
262 int /* which */ );
263
264extern RegionPtr CreateBoundingShape(
265 WindowPtr /* pWin */ );
266
267extern RegionPtr CreateClipShape(
268 WindowPtr /* pWin */ );
269
270extern void DisableMapUnmapEvents(
271 WindowPtr /* pWin */ );
272extern void EnableMapUnmapEvents(
273 WindowPtr /* pWin */ );
274extern Bool MapUnmapEventsEnabled(
275 WindowPtr /* pWin */ );
276
277#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