1<?xml version="1.0" encoding="utf-8"?>
2<!--
3Copyright (C) 2004 Josh Triplett
4Copyright (C) 2007 Jeremy Kolb
5All Rights Reserved.
6
7Permission is hereby granted, free of charge, to any person obtaining a copy
8of this software and associated documentation files (the "Software"), to deal
9in the Software without restriction, including without limitation the rights
10to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11copies of the Software, and to permit persons to whom the Software is
12furnished to do so, subject to the following conditions:
13
14The above copyright notice and this permission notice shall be included in all
15copies or substantial portions of the Software.
16
17THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
21ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
24Except as contained in this notice, the names of the authors or their
25institutions shall not be used in advertising or otherwise to promote the
26sale, use or other dealings in this Software without prior written
27authorization from the authors.
28-->
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>
34
35  <xidtype name="DAMAGE" />
36
37  <enum name="ReportLevel">
38    <item name="RawRectangles">   <value>0</value> </item>
39    <item name="DeltaRectangles"> <value>1</value> </item>
40    <item name="BoundingBox">     <value>2</value> </item>
41    <item name="NonEmpty">        <value>3</value> </item>
42  </enum>
43
44  <error name="BadDamage" number="0" />
45
46  <request name="QueryVersion" opcode="0">
47    <field type="CARD32" name="client_major_version" />
48    <field type="CARD32" name="client_minor_version" />
49    <reply>
50      <pad bytes="1" />
51      <field type="CARD32" name="major_version" />
52      <field type="CARD32" name="minor_version" />
53      <pad bytes="16" />
54    </reply>
55  </request>
56
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" />
61    <pad bytes="3" />
62  </request>
63
64  <request name="Destroy" opcode="2">
65    <field type="DAMAGE" name="damage" />
66  </request>
67
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" />
72  </request>
73
74  <request name="Add" opcode="4">
75    <field type="DRAWABLE" name="drawable" />
76    <field type="REGION" name="region" />
77  </request>
78
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" />
86  </event>
87</xcb>
88