~ubuntu-branches/ubuntu/karmic/virtualbox-ose/karmic-updates

« back to all changes in this revision

Viewing changes to src/VBox/Additions/x11/x11include/xorg-server-1.5.3/window.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2009-09-14 18:25:07 UTC
  • mfrom: (0.4.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090914182507-c98g07mq16hjmn6d
Tags: 3.0.6-dfsg-1ubuntu1
* Merge from debian unstable (LP: #429697), remaining changes:
  - Enable DKMS support on virtualbox host and guest modules (LP: #267097)
    - Drop virtualbox-ose{-guest,}-modules-* package templates
    - Recommend *-source instead of *-modules packages
    - Replace error messages related to missing/mismatched
      kernel module accordingly
  - Autoload kernel module
    - LOAD_VBOXDRV_MODULE=1 in virtualbox-ose.default
  - Disable update action
    - patches/u01-disable-update-action.dpatch
  - Virtualbox should go in Accessories, not in System tools (LP: #288590)
    - virtualbox-ose-qt.files/virtualbox-ose.desktop
  - Add apport hook
    - virtualbox-ose.files/source_virtualbox-ose.py
    - virtualbox-ose.install
  - Add launchpad integration
    - control
    - lpi-bug.xpm
    - patches/u02-lp-integration.dpatch
  - virtualbox, virtualbox-* (names of the upstream proprietary packages)
    conflict with virtualbox-ose (LP: #379878)
* Make debug package depend on normal or guest utils package
* Drop patches/22-pulseaudio-stubs.dpatch (applied upstream)
* Rename Ubuntu specific patches to uXX-*.dpatch
* Fix lintian warnings in maintainer scripts

Show diffs side-by-side

added added

removed removed

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