Remove now unnecessary files as everything is implemented in xcbgen.
[free-sw/xcb/proto] / src / xfixes.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <!--
3 Copyright (C) 2004 Josh Triplett.  All Rights Reserved.
4
5 Permission is hereby granted, free of charge, to any person obtaining a copy
6 of this software and associated documentation files (the "Software"), to deal
7 in the Software without restriction, including without limitation the rights
8 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 copies of the Software, and to permit persons to whom the Software is
10 furnished to do so, subject to the following conditions:
11
12 The above copyright notice and this permission notice shall be included in all
13 copies or substantial portions of the 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 THE
18 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
19 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
22 Except as contained in this notice, the names of the authors or their
23 institutions shall not be used in advertising or otherwise to promote the
24 sale, use or other dealings in this Software without prior written
25 authorization from the authors.
26 -->
27 <!-- This file describes version 4 of XFixes. -->
28 <xcb header="xfixes" extension-xname="XFIXES" extension-name="XFixes"
29     major-version="4" minor-version="0">
30   <import>xproto</import>
31   <import>render</import>
32   <import>shape</import>
33
34   <!-- Version 1 -->
35   <request name="QueryVersion" opcode="0">
36     <field type="CARD32" name="client_major_version" />
37     <field type="CARD32" name="client_minor_version" />
38     <reply>
39       <pad bytes="1" />
40       <field type="CARD32" name="major_version" />
41       <field type="CARD32" name="minor_version" />
42       <pad bytes="16" />
43     </reply>
44   </request>
45
46   <enum name="SaveSetMode">
47     <item name="Insert" />
48     <item name="Delete" />
49   </enum>
50
51   <enum name="SaveSetTarget">
52     <item name="Nearest" />
53     <item name="Root" />
54   </enum>
55
56   <enum name="SaveSetMapping">
57     <item name="Map" />
58     <item name="Unmap" />
59   </enum>
60
61   <request name="ChangeSaveSet" opcode="1">
62     <field type="BYTE" name="mode"   enum="SaveSetMode" />
63     <field type="BYTE" name="target" enum="SaveSetTarget" />
64     <field type="BYTE" name="map"    enum="SaveSetMapping" />
65     <pad bytes="1" />
66     <field type="WINDOW" name="window" />
67   </request>
68
69   <enum name="SelectionEvent">
70     <item name="SetSelectionOwner" />
71     <item name="SelectionWindowDestroy" />
72     <item name="SelectionClientClose" />
73   </enum>
74
75   <enum name="SelectionEventMask">
76     <item name="SetSelectionOwner">     <bit>0</bit></item>
77     <item name="SelectionWindowDestroy"><bit>1</bit></item>
78     <item name="SelectionClientClose">  <bit>2</bit></item>
79   </enum>
80
81   <event name="SelectionNotify" number="0">
82     <field type="CARD8"     name="subtype" enum="SelectionEvent" />
83     <field type="WINDOW"    name="window" />
84     <field type="WINDOW"    name="owner" />
85     <field type="ATOM"      name="selection" />
86     <field type="TIMESTAMP" name="timestamp" />
87     <field type="TIMESTAMP" name="selection_timestamp" />
88     <pad bytes="8" />
89   </event>
90
91   <request name="SelectSelectionInput" opcode="2">
92     <field type="WINDOW" name="window" />
93     <field type="ATOM"   name="selection" />
94     <field type="CARD32" name="event_mask" mask="SelectionEventMask" />
95   </request>
96
97   <enum name="CursorNotify">
98     <item name="DisplayCursor" />
99   </enum>
100
101   <enum name="CursorNotifyMask">
102     <item name="DisplayCursor"><bit>0</bit></item>
103   </enum>
104
105   <event name="CursorNotify" number="1">
106     <field type="CARD8"     name="subtype" enum="CursorNotify" />
107     <field type="WINDOW"    name="window" />
108     <field type="CARD32"    name="cursor_serial" />
109     <field type="TIMESTAMP" name="timestamp" />
110     <field type="ATOM"      name="name" altenum="Atom" /> <!-- Added in version 2 -->
111     <pad bytes="12" />
112   </event>
113
114   <request name="SelectCursorInput" opcode="3">
115     <field type="WINDOW" name="window" />
116     <field type="CARD32" name="event_mask" mask="CursorNotifyMask" />
117   </request>
118
119   <request name="GetCursorImage" opcode="4">
120     <reply>
121       <pad bytes="1" />
122       <field type="INT16"  name="x" />
123       <field type="INT16"  name="y" />
124       <field type="CARD16" name="width" />
125       <field type="CARD16" name="height" />
126       <field type="CARD16" name="xhot" />
127       <field type="CARD16" name="yhot" />
128       <field type="CARD32" name="cursor_serial" />
129       <pad bytes="8" />
130       <list  type="CARD32" name="cursor_image">
131         <op op="*">
132           <fieldref>width</fieldref>
133           <fieldref>height</fieldref>
134         </op>
135       </list>
136     </reply>
137   </request>
138
139   <!-- Version 2 -->
140
141   <xidtype name="REGION" />
142
143   <error name="BadRegion" number="0" />
144
145   <enum name="Region">
146     <item name="None" />
147   </enum>
148
149   <request name="CreateRegion" opcode="5">
150     <field type="REGION"    name="region" />
151     <list  type="RECTANGLE" name="rectangles" />
152   </request>
153
154   <request name="CreateRegionFromBitmap" opcode="6">
155     <field type="REGION" name="region" />
156     <field type="PIXMAP" name="bitmap" />
157   </request>
158
159   <request name="CreateRegionFromWindow" opcode="7">
160     <field type="REGION"     name="region" />
161     <field type="WINDOW"     name="window" />
162     <field type="shape:KIND" name="kind"   enum="SK" />
163     <pad bytes="3" />
164   </request>
165
166   <request name="CreateRegionFromGC" opcode="8">
167     <field type="REGION"   name="region" />
168     <field type="GCONTEXT" name="gc" />
169   </request>
170
171   <request name="CreateRegionFromPicture" opcode="9">
172     <field type="REGION"  name="region" />
173     <field type="PICTURE" name="picture" />
174   </request>
175
176   <request name="DestroyRegion" opcode="10">
177     <field type="REGION"  name="region" />
178   </request>
179
180   <request name="SetRegion" opcode="11">
181     <field type="REGION"    name="region" />
182     <list  type="RECTANGLE" name="rectangles" />
183   </request>
184
185   <request name="CopyRegion" opcode="12">
186     <field type="REGION" name="source" />
187     <field type="REGION" name="destination" />
188   </request>
189
190   <request name="UnionRegion" opcode="13">
191     <field type="REGION" name="source1" />
192     <field type="REGION" name="source2" />
193     <field type="REGION" name="destination" />
194   </request>
195
196   <request name="IntersectRegion" opcode="14">
197     <field type="REGION" name="source1" />
198     <field type="REGION" name="source2" />
199     <field type="REGION" name="destination" />
200   </request>
201
202   <request name="SubtractRegion" opcode="15">
203     <field type="REGION" name="source1" />
204     <field type="REGION" name="source2" />
205     <field type="REGION" name="destination" />
206   </request>
207
208   <request name="InvertRegion" opcode="16">
209     <field type="REGION"    name="source" />
210     <field type="RECTANGLE" name="bounds" />
211     <field type="REGION"    name="destination" />
212   </request>
213
214   <request name="TranslateRegion" opcode="17">
215     <field type="REGION" name="region" />
216     <field type="INT16"  name="dx" />
217     <field type="INT16"  name="dy" />
218   </request>
219
220   <request name="RegionExtents" opcode="18">    
221     <field type="REGION" name="source" />
222     <field type="REGION" name="destination" />
223   </request>
224
225   <request name="FetchRegion" opcode="19">
226     <field type="REGION" name="region" />
227     <reply>
228       <pad bytes="1" />
229       <field type="RECTANGLE" name="extents" />
230       <pad bytes="16" />
231       <list  type="RECTANGLE" name="rectangles">
232         <op op='/'>
233                 <fieldref>length</fieldref>
234                 <value>2</value>
235         </op>
236       </list>
237     </reply>
238   </request>
239
240   <request name="SetGCClipRegion" opcode="20">
241     <field type="GCONTEXT" name="gc" />
242     <field type="REGION"   name="region" altenum="Region" />
243     <field type="INT16"    name="x_origin" />
244     <field type="INT16"    name="y_origin" />
245   </request>
246
247   <request name="SetWindowShapeRegion" opcode="21">
248     <field type="WINDOW"     name="dest" />
249     <field type="shape:KIND" name="dest_kind" enum="SK" />
250     <pad bytes="3" />
251     <field type="INT16"      name="x_offset" />
252     <field type="INT16"      name="y_offset" />
253     <field type="REGION"     name="region" altenum="Region" />
254   </request>
255
256   <request name="SetPictureClipRegion" opcode="22">
257     <field type="PICTURE" name="picture" />
258     <field type="REGION"  name="region" altenum="Region" />
259     <field type="INT16"   name="x_origin" />
260     <field type="INT16"   name="y_origin" />
261   </request>
262
263   <request name="SetCursorName" opcode="23">
264     <field type="CURSOR" name="cursor" />
265     <field type="CARD16" name="nbytes" />
266     <pad bytes="2" />
267     <list  type="char"   name="name"><fieldref>nbytes</fieldref></list>
268   </request>
269
270   <request name="GetCursorName" opcode="24">
271     <field type="CURSOR" name="cursor" />
272     <reply>
273       <pad bytes="1" />
274       <field type="ATOM"   name="atom" altenum="Atom" />
275       <field type="CARD16" name="nbytes" />
276       <pad bytes="18" />
277       <list  type="char"   name="name"><fieldref>nbytes</fieldref></list>
278     </reply>
279   </request>
280
281   <request name="GetCursorImageAndName" opcode="25">
282     <reply>
283       <pad bytes="1" />
284       <field type="INT16"  name="x" />
285       <field type="INT16"  name="y" />
286       <field type="CARD16" name="width" />
287       <field type="CARD16" name="height" />
288       <field type="CARD16" name="xhot" />
289       <field type="CARD16" name="yhot" />
290       <field type="CARD32" name="cursor_serial" />
291       <field type="ATOM"   name="cursor_atom" altenum="Atom" />
292       <field type="CARD16" name="nbytes" />
293       <pad bytes="2" />
294       <list  type="char"   name="name"><fieldref>nbytes</fieldref></list>
295       <list  type="CARD32" name="cursor_image">
296         <op op="*">
297           <fieldref>width</fieldref>
298           <fieldref>height</fieldref>
299         </op>
300       </list>
301     </reply>
302   </request>
303
304   <request name="ChangeCursor" opcode="26">
305     <field type="CURSOR" name="source" />
306     <field type="CURSOR" name="destination" />
307   </request>
308
309   <request name="ChangeCursorByName" opcode="27">
310     <field type="CURSOR" name="src" />
311     <field type="CARD16" name="nbytes" />
312     <pad bytes="2" />
313     <list  type="char"   name="name"><fieldref>nbytes</fieldref></list>
314   </request>
315
316   <!-- Version 3 -->
317   <request name="ExpandRegion" opcode="28">
318     <field type="REGION" name="source" />
319     <field type="REGION" name="destination" />
320     <field type="CARD16" name="left" />
321     <field type="CARD16" name="right" />
322     <field type="CARD16" name="top" />
323     <field type="CARD16" name="bottom" />
324   </request>
325   
326   <!-- Version 4 -->
327   <request name="HideCursor" opcode="29">
328     <field type="WINDOW" name="window" />
329   </request>
330
331   <request name="ShowCursor" opcode="30">
332     <field type="WINDOW" name="window" />
333   </request>
334 </xcb>