1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2004 Josh Triplett
4 Copyright (C) 2007 Jeremy Kolb
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
14 The above copyright notice and this permission notice shall be included in all
15 copies or substantial portions of the Software.
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24 Except as contained in this notice, the names of the authors or their
25 institutions shall not be used in advertising or otherwise to promote the
26 sale, use or other dealings in this Software without prior written
27 authorization from the authors.
29 <!-- This file describes version 1.1 of DAMAGE. -->
30 <xcb header="damage" extension-xname="DAMAGE" extension-name="Damage"
31 major-version="1" minor-version="1">
32 <import>xproto</import>
33 <import>xfixes</import>
35 <xidtype name="DAMAGE" />
37 <enum name="ReportLevel">
38 <item name="RawRectangles" />
39 <item name="DeltaRectangles" />
40 <item name="BoundingBox" />
41 <item name="NonEmpty" />
44 <error name="BadDamage" number="0" />
46 <request name="QueryVersion" opcode="0">
47 <field type="CARD32" name="client_major_version" />
48 <field type="CARD32" name="client_minor_version" />
51 <field type="CARD32" name="major_version" />
52 <field type="CARD32" name="minor_version" />
57 <request name="Create" opcode="1">
58 <field type="DAMAGE" name="damage" />
59 <field type="DRAWABLE" name="drawable" />
60 <field type="CARD8" name="level" enum="ReportLevel" />
64 <request name="Destroy" opcode="2">
65 <field type="DAMAGE" name="damage" />
68 <request name="Subtract" opcode="3">
69 <field type="DAMAGE" name="damage" />
70 <field type="REGION" name="repair" altenum="Region" />
71 <field type="REGION" name="parts" altenum="Region" />
74 <request name="Add" opcode="4">
75 <field type="DRAWABLE" name="drawable" />
76 <field type="REGION" name="region" />
79 <event name="Notify" number="0">
80 <field type="CARD8" name="level" enum="ReportLevel" />
81 <field type="DRAWABLE" name="drawable" />
82 <field type="DAMAGE" name="damage" />
83 <field type="TIMESTAMP" name="timestamp" />
84 <field type="RECTANGLE" name="area" />
85 <field type="RECTANGLE" name="geometry" />