1
/* $Xorg: window.h,v 1.4 2001/02/09 02:05:16 xorgcvs Exp $ */
2
/***********************************************************
4
Copyright 1987, 1998 The Open Group
6
Permission to use, copy, modify, distribute, and sell this software and its
7
documentation for any purpose is hereby granted without fee, provided that
8
the above copyright notice appear in all copies and that both that
9
copyright notice and this permission notice appear in supporting
12
The above copyright notice and this permission notice shall be included in
13
all copies or substantial portions of the Software.
15
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
19
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
Except as contained in this notice, the name of The Open Group shall not be
23
used in advertising or otherwise to promote the sale, use or other dealings
24
in this Software without prior written authorization from The Open Group.
27
Copyright 1987 by Digital Equipment Corporation, Maynard, Massachusetts.
31
Permission to use, copy, modify, and distribute this software and its
32
documentation for any purpose and without fee is hereby granted,
33
provided that the above copyright notice appear in all copies and that
34
both that copyright notice and this permission notice appear in
35
supporting documentation, and that the name of Digital not be
36
used in advertising or publicity pertaining to distribution of the
37
software without specific, written prior permission.
39
DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
40
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
41
DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
42
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
43
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
44
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
47
******************************************************************/
54
#include "screenint.h"
55
#include "X11/Xproto.h"
57
#define TOTALLY_OBSCURED 0
61
#define VisibilityNotViewable 3
63
/* return values for tree-walking callback procedures */
64
#define WT_STOPWALKING 0
65
#define WT_WALKCHILDREN 1
66
#define WT_DONTWALKCHILDREN 2
68
#define NullWindow ((WindowPtr) 0)
70
typedef struct _BackingStore *BackingStorePtr;
71
typedef struct _Window *WindowPtr;
73
typedef int (*VisitWindowProcPtr)(
74
#if NeedNestedPrototypes
80
extern int TraverseTree(
81
#if NeedFunctionPrototypes
83
VisitWindowProcPtr /*func*/,
89
#if NeedFunctionPrototypes
90
ScreenPtr /*pScreen*/,
91
VisitWindowProcPtr /*func*/,
96
extern WindowPtr AllocateWindow(
97
#if NeedFunctionPrototypes
102
extern Bool CreateRootWindow(
103
#if NeedFunctionPrototypes
104
ScreenPtr /*pScreen*/
108
extern void InitRootWindow(
109
#if NeedFunctionPrototypes
114
extern void ClippedRegionFromBox(
115
#if NeedFunctionPrototypes
125
extern WindowPtr RealChildHead(
126
#if NeedFunctionPrototypes
131
extern WindowPtr CreateWindow(
132
#if NeedFunctionPrototypes
134
WindowPtr /*pParent*/,
140
unsigned int /*class*/,
144
ClientPtr /*client*/,
150
extern int DeleteWindow(
151
#if NeedFunctionPrototypes
157
extern void DestroySubwindows(
158
#if NeedFunctionPrototypes
164
/* Quartz support on Mac OS X uses the HIToolbox
165
framework whose ChangeWindowAttributes function conflicts here. */
167
#define ChangeWindowAttributes Darwin_X_ChangeWindowAttributes
169
extern int ChangeWindowAttributes(
170
#if NeedFunctionPrototypes
178
/* Quartz support on Mac OS X uses the HIToolbox
179
framework whose GetWindowAttributes function conflicts here. */
181
#define GetWindowAttributes(w,c,x) Darwin_X_GetWindowAttributes(w,c,x)
182
extern void Darwin_X_GetWindowAttributes(
184
extern void GetWindowAttributes(
186
#if NeedFunctionPrototypes
188
ClientPtr /*client*/,
189
xGetWindowAttributesReply* /* wa */
193
extern RegionPtr CreateUnclippedWinSize(
194
#if NeedFunctionPrototypes
199
extern void GravityTranslate(
200
#if NeedFunctionPrototypes
207
unsigned /*gravity*/,
213
extern int ConfigureWindow(
214
#if NeedFunctionPrototypes
222
extern int CirculateWindow(
223
#if NeedFunctionPrototypes
224
WindowPtr /*pParent*/,
230
extern int ReparentWindow(
231
#if NeedFunctionPrototypes
233
WindowPtr /*pParent*/,
240
extern int MapWindow(
241
#if NeedFunctionPrototypes
247
extern void MapSubwindows(
248
#if NeedFunctionPrototypes
249
WindowPtr /*pParent*/,
254
extern int UnmapWindow(
255
#if NeedFunctionPrototypes
257
Bool /*fromConfigure*/
261
extern void UnmapSubwindows(
262
#if NeedFunctionPrototypes
267
extern void HandleSaveSet(
268
#if NeedFunctionPrototypes
273
extern Bool VisibleBoundingBoxFromPoint(
274
#if NeedFunctionPrototypes
282
extern Bool PointInWindowIsVisible(
283
#if NeedFunctionPrototypes
290
extern RegionPtr NotClippedByChildren(
291
#if NeedFunctionPrototypes
296
extern void SendVisibilityNotify(
297
#if NeedFunctionPrototypes
302
extern void SaveScreens(
303
#if NeedFunctionPrototypes
309
extern WindowPtr FindWindowWithOptional(
310
#if NeedFunctionPrototypes
315
extern void CheckWindowOptionalNeed(
316
#if NeedFunctionPrototypes
321
extern Bool MakeWindowOptional(
322
#if NeedFunctionPrototypes
327
extern void DisposeWindowOptional(
328
#if NeedFunctionPrototypes
333
extern WindowPtr MoveWindowInStack(
334
#if NeedFunctionPrototypes
336
WindowPtr /*pNextSib*/
341
#if NeedFunctionPrototypes
347
#if NeedFunctionPrototypes
352
void ResizeChildrenWinSize(
353
#if NeedFunctionPrototypes
362
#endif /* WINDOW_H */