VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/1.5/xorg/damagestr.h@ 17234

Last change on this file since 17234 was 17234, checked in by vboxsync, 16 years ago

Additions/x11/x11include: blast! Corrected svn:keywords property on all files as per http://linserv.germany/vbox/wiki/SvnKeywords

  • Property svn:eol-style set to native
File size: 3.3 KB
Line 
1/*
2 * Copyright © 2003 Keith Packard
3 *
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that
7 * copyright notice and this permission notice appear in supporting
8 * documentation, and that the name of Keith Packard not be used in
9 * advertising or publicity pertaining to distribution of the software without
10 * specific, written prior permission. Keith Packard makes no
11 * representations about the suitability of this software for any purpose. It
12 * is provided "as is" without express or implied warranty.
13 *
14 * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20 * PERFORMANCE OF THIS SOFTWARE.
21 */
22
23#ifdef HAVE_DIX_CONFIG_H
24#include <dix-config.h>
25#endif
26
27#ifndef _DAMAGESTR_H_
28#define _DAMAGESTR_H_
29
30#include "damage.h"
31#include "gcstruct.h"
32#include "privates.h"
33#ifdef RENDER
34# include "picturestr.h"
35#endif
36
37typedef struct _damage {
38 DamagePtr pNext;
39 DamagePtr pNextWin;
40 RegionRec damage;
41
42 DamageReportLevel damageLevel;
43 Bool isInternal;
44 void *closure;
45 Bool isWindow;
46 DrawablePtr pDrawable;
47
48 DamageReportFunc damageReport;
49 DamageDestroyFunc damageDestroy;
50
51 Bool reportAfter;
52 RegionRec pendingDamage;
53} DamageRec;
54
55typedef struct _damageScrPriv {
56 int internalLevel;
57
58 /*
59 * For DDXen which don't provide GetScreenPixmap, this provides
60 * a place to hook damage for windows on the screen
61 */
62 DamagePtr pScreenDamage;
63
64 CopyWindowProcPtr CopyWindow;
65 CloseScreenProcPtr CloseScreen;
66 CreateGCProcPtr CreateGC;
67 DestroyPixmapProcPtr DestroyPixmap;
68 SetWindowPixmapProcPtr SetWindowPixmap;
69 DestroyWindowProcPtr DestroyWindow;
70#ifdef RENDER
71 CompositeProcPtr Composite;
72 GlyphsProcPtr Glyphs;
73#endif
74} DamageScrPrivRec, *DamageScrPrivPtr;
75
76typedef struct _damageGCPriv {
77 GCOps *ops;
78 GCFuncs *funcs;
79} DamageGCPrivRec, *DamageGCPrivPtr;
80
81/* XXX should move these into damage.c, damageScrPrivateIndex is static */
82#define damageGetScrPriv(pScr) ((DamageScrPrivPtr) \
83 dixLookupPrivate(&(pScr)->devPrivates, damageScrPrivateKey))
84
85#define damageScrPriv(pScr) \
86 DamageScrPrivPtr pScrPriv = damageGetScrPriv(pScr)
87
88#define damageGetPixPriv(pPix) \
89 dixLookupPrivate(&(pPix)->devPrivates, damagePixPrivateKey)
90
91#define damgeSetPixPriv(pPix,v) \
92 dixSetPrivate(&(pPix)->devPrivates, damagePixPrivateKey, v)
93
94#define damagePixPriv(pPix) \
95 DamagePtr pDamage = damageGetPixPriv(pPix)
96
97#define damageGetGCPriv(pGC) \
98 dixLookupPrivate(&(pGC)->devPrivates, damageGCPrivateKey)
99
100#define damageGCPriv(pGC) \
101 DamageGCPrivPtr pGCPriv = damageGetGCPriv(pGC)
102
103#define damageGetWinPriv(pWin) \
104 ((DamagePtr)dixLookupPrivate(&(pWin)->devPrivates, damageWinPrivateKey))
105
106#define damageSetWinPriv(pWin,d) \
107 dixSetPrivate(&(pWin)->devPrivates, damageWinPrivateKey, d)
108
109#endif /* _DAMAGESTR_H_ */
Note: See TracBrowser for help on using the repository browser.

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