made changes to support new value-mask-pad field of valueparam structures
[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" />   <!-- SaveSetMode -->
63     <field type="BYTE" name="target" /> <!-- SaveSetTarget -->
64     <field type="BYTE" name="map" />    <!-- 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" /> <!-- 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" /> <!-- 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" /> <!-- 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" /> <!-- 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" /> <!-- 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   <request name="CreateRegion" opcode="5">
146     <field type="REGION"    name="region" />
147     <list  type="RECTANGLE" name="rectangles" />
148   </request>
149
150   <request name="CreateRegionFromBitmap" opcode="6">
151     <field type="REGION" name="region" />
152     <field type="PIXMAP" name="bitmap" />
153   </request>
154
155   <request name="CreateRegionFromWindow" opcode="7">
156     <field type="REGION"     name="region" />
157     <field type="WINDOW"     name="window" />
158     <field type="shape:KIND" name="kind" />
159     <pad bytes="3" />
160   </request>
161
162   <request name="CreateRegionFromGC" opcode="8">
163     <field type="REGION"   name="region" />
164     <field type="GCONTEXT" name="gc" />
165   </request>
166
167   <request name="CreateRegionFromPicture" opcode="9">
168     <field type="REGION"  name="region" />
169     <field type="PICTURE" name="picture" />
170   </request>
171
172   <request name="DestroyRegion" opcode="10">
173     <field type="REGION"  name="region" />
174   </request>
175
176   <request name="SetRegion" opcode="11">
177     <field type="REGION"    name="region" />
178     <list  type="RECTANGLE" name="rectangles" />
179   </request>
180
181   <request name="CopyRegion" opcode="12">
182     <field type="REGION" name="source" />
183     <field type="REGION" name="destination" />
184   </request>
185
186   <request name="UnionRegion" opcode="13">
187     <field type="REGION" name="source1" />
188     <field type="REGION" name="source2" />
189     <field type="REGION" name="destination" />
190   </request>
191
192   <request name="IntersectRegion" opcode="14">
193     <field type="REGION" name="source1" />
194     <field type="REGION" name="source2" />
195     <field type="REGION" name="destination" />
196   </request>
197
198   <request name="SubtractRegion" opcode="15">
199     <field type="REGION" name="source1" />
200     <field type="REGION" name="source2" />
201     <field type="REGION" name="destination" />
202   </request>
203
204   <request name="InvertRegion" opcode="16">
205     <field type="REGION"    name="source" />
206     <field type="RECTANGLE" name="bounds" />
207     <field type="REGION"    name="destination" />
208   </request>
209
210   <request name="TranslateRegion" opcode="17">
211     <field type="REGION" name="region" />
212     <field type="INT16"  name="dx" />
213     <field type="INT16"  name="dy" />
214   </request>
215
216   <request name="RegionExtents" opcode="18">    
217     <field type="REGION" name="source" />
218     <field type="REGION" name="destination" />
219   </request>
220
221   <request name="FetchRegion" opcode="19">
222     <field type="REGION" name="region" />
223     <reply>
224       <pad bytes="1" />
225       <field type="RECTANGLE" name="extents" />
226       <pad bytes="16" />
227       <list  type="RECTANGLE" name="rectangles">
228                 <fieldref>length</fieldref>
229       </list>
230     </reply>
231   </request>
232
233   <request name="SetGCClipRegion" opcode="20">
234     <field type="GCONTEXT" name="gc" />
235     <field type="REGION"   name="region" />
236     <field type="INT16"    name="x_origin" />
237     <field type="INT16"    name="y_origin" />
238   </request>
239
240   <request name="SetWindowShapeRegion" opcode="21">
241     <field type="WINDOW"     name="dest" />
242     <field type="shape:KIND" name="dest_kind" />
243     <pad bytes="3" />
244     <field type="INT16"      name="x_offset" />
245     <field type="INT16"      name="y_offset" />
246     <field type="REGION"     name="region" />
247   </request>
248
249   <request name="SetPictureClipRegion" opcode="22">
250     <field type="PICTURE" name="picture" />
251     <field type="REGION"  name="region" />
252     <field type="INT16"   name="x_origin" />
253     <field type="INT16"   name="y_origin" />
254   </request>
255
256   <request name="SetCursorName" opcode="23">
257     <field type="CURSOR" name="cursor" />
258     <field type="CARD16" name="nbytes" />
259     <pad bytes="2" />
260     <list  type="CARD8"  name="name"><fieldref>nbytes</fieldref></list>
261   </request>
262
263   <request name="GetCursorName" opcode="24">
264     <field type="CURSOR" name="cursor" />
265     <reply>
266       <pad bytes="1" />
267       <field type="ATOM"   name="atom" />
268       <field type="CARD16" name="nbytes" />
269       <pad bytes="18" />
270       <list  type="CARD8"  name="name"><fieldref>nbytes</fieldref></list>
271     </reply>
272   </request>
273
274   <request name="GetCursorImageAndName" opcode="25">
275     <reply>
276       <pad bytes="1" />
277       <field type="INT16"  name="x" />
278       <field type="INT16"  name="y" />
279       <field type="CARD16" name="width" />
280       <field type="CARD16" name="height" />
281       <field type="CARD16" name="xhot" />
282       <field type="CARD16" name="yhot" />
283       <field type="CARD32" name="cursor_serial" />
284       <field type="ATOM"   name="cursor_atom" />
285       <field type="CARD16" name="nbytes" />
286       <pad bytes="2" />
287       <list  type="CARD8"  name="name"><fieldref>nbytes</fieldref></list>
288       <list  type="CARD32" name="cursor_image">
289         <op op="*">
290           <fieldref>width</fieldref>
291           <fieldref>height</fieldref>
292         </op>
293       </list>
294     </reply>
295   </request>
296
297   <request name="ChangeCursor" opcode="26">
298     <field type="CURSOR" name="source" />
299     <field type="CURSOR" name="destination" />
300   </request>
301
302   <request name="ChangeCursorByName" opcode="27">
303     <field type="CURSOR" name="src" />
304     <field type="CARD16" name="nbytes" />
305     <pad bytes="2" />
306     <list  type="CARD8"  name="name"><fieldref>nbytes</fieldref></list>
307   </request>
308
309   <!-- Version 3 -->
310   <request name="ExpandRegion" opcode="28">
311     <field type="REGION" name="source" />
312     <field type="REGION" name="destination" />
313     <field type="CARD16" name="left" />
314     <field type="CARD16" name="right" />
315     <field type="CARD16" name="top" />
316     <field type="CARD16" name="bottom" />
317   </request>
318   
319   <!-- Version 4 -->
320   <request name="HideCursor" opcode="29">
321     <field type="WINDOW" name="window" />
322   </request>
323
324   <request name="ShowCursor" opcode="30">
325     <field type="WINDOW" name="window" />
326   </request>
327 </xcb>