1 module x11.extensions.damagewire;
2 
3 version(Posix):
4 
5 /*
6  * Copyright © 2003 Keith Packard
7  *
8  * Permission to use, copy, modify, distribute, and sell this software and its
9  * documentation for any purpose is hereby granted without fee, provided that
10  * the above copyright notice appear in all copies and that both that
11  * copyright notice and this permission notice appear in supporting
12  * documentation, and that the name of Keith Packard not be used in
13  * advertising or publicity pertaining to distribution of the software without
14  * specific, written prior permission.  Keith Packard makes no
15  * representations about the suitability of this software for any purpose.  It
16  * is provided "as is" without express or implied warranty.
17  *
18  * KEITH PACKARD DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
19  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
20  * EVENT SHALL KEITH PACKARD BE LIABLE FOR ANY SPECIAL, INDIRECT OR
21  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
22  * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
23  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
24  * PERFORMANCE OF THIS SOFTWARE.
25  */
26 
27 enum DAMAGE_NAME                    = "DAMAGE";
28 enum DAMAGE_MAJOR                   = 1;
29 enum DAMAGE_MINOR                   = 1;
30 
31 /************* Version 1 ****************/
32 
33 /* Constants */
34 enum XDamageReportRawRectangles     = 0;
35 enum XDamageReportDeltaRectangles   = 1;
36 enum XDamageReportBoundingBox       = 2;
37 enum XDamageReportNonEmpty          = 3;
38 
39 /* Requests */
40 enum X_DamageQueryVersion           = 0;
41 enum X_DamageCreate                 = 1;
42 enum X_DamageDestroy                = 2;
43 enum X_DamageSubtract               = 3;
44 enum X_DamageAdd                    = 4;
45 
46 enum XDamageNumberRequests          = (X_DamageAdd + 1);
47 
48 /* Events */
49 enum XDamageNotify                  = 0;
50 
51 enum XDamageNumberEvents            = (XDamageNotify + 1);
52 
53 /* Errors */
54 enum BadDamage                      = 0;
55 enum XDamageNumberErrors            = (BadDamage + 1);