VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/xorg-server-1.7.7/compint.h@ 54853

最後變更 在這個檔案從54853是 43272,由 vboxsync 提交於 12 年 前

Additions/x11: more original X server headers.

  • 屬性 svn:eol-style 設為 native
檔案大小: 8.2 KB
 
1/*
2 * Copyright © 2006 Sun Microsystems, Inc. All rights reserved.
3 *
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
10 *
11 * The above copyright notice and this permission notice (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
13 * Software.
14 *
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
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21 * DEALINGS IN THE SOFTWARE.
22 *
23 * Copyright © 2003 Keith Packard
24 *
25 * Permission to use, copy, modify, distribute, and sell this software and its
26 * documentation for any purpose is hereby granted without fee, provided that
27 * the above copyright notice appear in all copies and that both that
28 * copyright notice and this permission notice appear in supporting
29 * documentation, and that the name of Keith Packard not be used in
30 * advertising or publicity pertaining to distribution of the software without
31 * specific, written prior permission. Keith Packard makes no
32 * representations about the suitability of this software for any purpose. It
33 * is provided "as is" without express or implied warranty.
34 *
35 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
36 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
37 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
38 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
39 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
40 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
41 * PERFORMANCE OF THIS SOFTWARE.
42 */
43
44#ifdef HAVE_DIX_CONFIG_H
45#include <dix-config.h>
46#endif
47
48#ifndef _COMPINT_H_
49#define _COMPINT_H_
50
51#include "misc.h"
52#include "scrnintstr.h"
53#include "os.h"
54#include "regionstr.h"
55#include "validate.h"
56#include "windowstr.h"
57#include "input.h"
58#include "resource.h"
59#include "colormapst.h"
60#include "cursorstr.h"
61#include "dixstruct.h"
62#include "gcstruct.h"
63#include "servermd.h"
64#include "dixevents.h"
65#include "globals.h"
66#include "picturestr.h"
67#include "extnsionst.h"
68#include "privates.h"
69#include "mi.h"
70#include "damage.h"
71#include "damageextint.h"
72#include "xfixes.h"
73#include <X11/extensions/compositeproto.h>
74#include <assert.h>
75
76/*
77 * enable this for debugging
78
79 #define COMPOSITE_DEBUG
80 */
81
82typedef struct _CompClientWindow {
83 struct _CompClientWindow *next;
84 XID id;
85 int update;
86} CompClientWindowRec, *CompClientWindowPtr;
87
88typedef struct _CompWindow {
89 RegionRec borderClip;
90 DamagePtr damage; /* for automatic update mode */
91 Bool damageRegistered;
92 Bool damaged;
93 int update;
94 CompClientWindowPtr clients;
95 int oldx;
96 int oldy;
97 PixmapPtr pOldPixmap;
98 int borderClipX, borderClipY;
99} CompWindowRec, *CompWindowPtr;
100
101#define COMP_ORIGIN_INVALID 0x80000000
102
103typedef struct _CompSubwindows {
104 int update;
105 CompClientWindowPtr clients;
106} CompSubwindowsRec, *CompSubwindowsPtr;
107
108#ifndef COMP_INCLUDE_RGB24_VISUAL
109#define COMP_INCLUDE_RGB24_VISUAL 0
110#endif
111
112typedef struct _CompOverlayClientRec *CompOverlayClientPtr;
113
114typedef struct _CompOverlayClientRec {
115 CompOverlayClientPtr pNext;
116 ClientPtr pClient;
117 ScreenPtr pScreen;
118 XID resource;
119} CompOverlayClientRec;
120
121typedef struct _CompScreen {
122 PositionWindowProcPtr PositionWindow;
123 CopyWindowProcPtr CopyWindow;
124 CreateWindowProcPtr CreateWindow;
125 DestroyWindowProcPtr DestroyWindow;
126 RealizeWindowProcPtr RealizeWindow;
127 UnrealizeWindowProcPtr UnrealizeWindow;
128 ClipNotifyProcPtr ClipNotify;
129 /*
130 * Called from ConfigureWindow, these
131 * three track changes to the offscreen storage
132 * geometry
133 */
134 MoveWindowProcPtr MoveWindow;
135 ResizeWindowProcPtr ResizeWindow;
136 ChangeBorderWidthProcPtr ChangeBorderWidth;
137 /*
138 * Reparenting has an effect on Subwindows redirect
139 */
140 ReparentWindowProcPtr ReparentWindow;
141
142 /*
143 * Colormaps for new visuals better not get installed
144 */
145 InstallColormapProcPtr InstallColormap;
146
147 /*
148 * Fake backing store via automatic redirection
149 */
150 ChangeWindowAttributesProcPtr ChangeWindowAttributes;
151
152 ScreenBlockHandlerProcPtr BlockHandler;
153 CloseScreenProcPtr CloseScreen;
154 Bool damaged;
155 int numAlternateVisuals;
156 VisualID *alternateVisuals;
157
158 WindowPtr pOverlayWin;
159 Window overlayWid;
160 CompOverlayClientPtr pOverlayClients;
161
162} CompScreenRec, *CompScreenPtr;
163
164extern DevPrivateKey CompScreenPrivateKey;
165extern DevPrivateKey CompWindowPrivateKey;
166extern DevPrivateKey CompSubwindowsPrivateKey;
167
168#define GetCompScreen(s) ((CompScreenPtr) \
169 dixLookupPrivate(&(s)->devPrivates, CompScreenPrivateKey))
170#define GetCompWindow(w) ((CompWindowPtr) \
171 dixLookupPrivate(&(w)->devPrivates, CompWindowPrivateKey))
172#define GetCompSubwindows(w) ((CompSubwindowsPtr) \
173 dixLookupPrivate(&(w)->devPrivates, CompSubwindowsPrivateKey))
174
175extern RESTYPE CompositeClientWindowType;
176extern RESTYPE CompositeClientSubwindowsType;
177extern RESTYPE CompositeClientOverlayType;
178
179/*
180 * compalloc.c
181 */
182
183Bool
184compRedirectWindow (ClientPtr pClient, WindowPtr pWin, int update);
185
186void
187compFreeClientWindow (WindowPtr pWin, XID id);
188
189int
190compUnredirectWindow (ClientPtr pClient, WindowPtr pWin, int update);
191
192int
193compRedirectSubwindows (ClientPtr pClient, WindowPtr pWin, int update);
194
195void
196compFreeClientSubwindows (WindowPtr pWin, XID id);
197
198int
199compUnredirectSubwindows (ClientPtr pClient, WindowPtr pWin, int update);
200
201int
202compRedirectOneSubwindow (WindowPtr pParent, WindowPtr pWin);
203
204int
205compUnredirectOneSubwindow (WindowPtr pParent, WindowPtr pWin);
206
207Bool
208compAllocPixmap (WindowPtr pWin);
209
210void
211compFreePixmap (WindowPtr pWin);
212
213Bool
214compReallocPixmap (WindowPtr pWin, int x, int y,
215 unsigned int w, unsigned int h, int bw);
216
217/*
218 * compext.c
219 */
220
221void
222CompositeExtensionInit (void);
223
224/*
225 * compinit.c
226 */
227
228Bool
229compScreenInit (ScreenPtr pScreen);
230
231/*
232 * compoverlay.c
233 */
234
235void
236compFreeOverlayClient (CompOverlayClientPtr pOcToDel);
237
238CompOverlayClientPtr
239compFindOverlayClient (ScreenPtr pScreen, ClientPtr pClient);
240
241CompOverlayClientPtr
242compCreateOverlayClient (ScreenPtr pScreen, ClientPtr pClient);
243
244Bool
245compCreateOverlayWindow (ScreenPtr pScreen);
246
247void
248compDestroyOverlayWindow (ScreenPtr pScreen);
249
250/*
251 * compwindow.c
252 */
253
254#ifdef COMPOSITE_DEBUG
255void
256compCheckTree (ScreenPtr pScreen);
257#else
258#define compCheckTree(s)
259#endif
260
261PictFormatPtr
262compWindowFormat (WindowPtr pWin);
263
264void
265compSetPixmap (WindowPtr pWin, PixmapPtr pPixmap);
266
267Bool
268compCheckRedirect (WindowPtr pWin);
269
270Bool
271compPositionWindow (WindowPtr pWin, int x, int y);
272
273Bool
274compRealizeWindow (WindowPtr pWin);
275
276Bool
277compUnrealizeWindow (WindowPtr pWin);
278
279void
280compClipNotify (WindowPtr pWin, int dx, int dy);
281
282void
283compMoveWindow (WindowPtr pWin, int x, int y, WindowPtr pSib, VTKind kind);
284
285void
286compResizeWindow (WindowPtr pWin, int x, int y,
287 unsigned int w, unsigned int h, WindowPtr pSib);
288
289void
290compChangeBorderWidth (WindowPtr pWin, unsigned int border_width);
291
292void
293compReparentWindow (WindowPtr pWin, WindowPtr pPriorParent);
294
295Bool
296compCreateWindow (WindowPtr pWin);
297
298Bool
299compDestroyWindow (WindowPtr pWin);
300
301void
302compSetRedirectBorderClip (WindowPtr pWin, RegionPtr pRegion);
303
304RegionPtr
305compGetRedirectBorderClip (WindowPtr pWin);
306
307void
308compCopyWindow (WindowPtr pWin, DDXPointRec ptOldOrg, RegionPtr prgnSrc);
309
310void
311compWindowUpdate (WindowPtr pWin);
312
313WindowPtr
314CompositeRealChildHead (WindowPtr pWin);
315
316int
317DeleteWindowNoInputDevices(pointer value, XID wid);
318
319#endif /* _COMPINT_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette