1d4401354Smrg<?xml version="1.0" encoding="utf-8"?> 2d4401354Smrg<!-- 3d4401354SmrgCopyright (C) 2001-2004 Bart Massey, Jamey Sharp, and Josh Triplett. 4d4401354SmrgAll Rights Reserved. 5d4401354Smrg 6d4401354SmrgPermission is hereby granted, free of charge, to any person obtaining a copy 7d4401354Smrgof this software and associated documentation files (the "Software"), to deal 8d4401354Smrgin the Software without restriction, including without limitation the rights 9d4401354Smrgto use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10d4401354Smrgcopies of the Software, and to permit persons to whom the Software is 11d4401354Smrgfurnished to do so, subject to the following conditions: 12d4401354Smrg 13d4401354SmrgThe above copyright notice and this permission notice shall be included in all 14d4401354Smrgcopies or substantial portions of the Software. 15d4401354Smrg 16d4401354SmrgTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17d4401354SmrgIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18d4401354SmrgFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19d4401354SmrgAUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN 20d4401354SmrgACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21d4401354SmrgWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22d4401354Smrg 23d4401354SmrgExcept as contained in this notice, the names of the authors or their 24d4401354Smrginstitutions shall not be used in advertising or otherwise to promote the 25d4401354Smrgsale, use or other dealings in this Software without prior written 26d4401354Smrgauthorization from the authors. 27d4401354Smrg--> 28d4401354Smrg<!-- This file describes version 1.1 of the Shape extension. --> 29d4401354Smrg<xcb header="shape" extension-xname="SHAPE" extension-name="Shape" major-version="1" minor-version="1"> 30d4401354Smrg <import>xproto</import> 31d4401354Smrg 32d4401354Smrg <typedef oldname="CARD8" newname="OP" /> 33d4401354Smrg <typedef oldname="CARD8" newname="KIND" /> 34d4401354Smrg 35d4401354Smrg <!-- Shape attributes of type OP. --> 36d4401354Smrg <enum name="SO"> 37f591e195Smrg <item name="Set"> <value>0</value> </item> 38f591e195Smrg <item name="Union"> <value>1</value> </item> 39f591e195Smrg <item name="Intersect"> <value>2</value> </item> 40f591e195Smrg <item name="Subtract"> <value>3</value> </item> 41f591e195Smrg <item name="Invert"> <value>4</value> </item> 42d4401354Smrg </enum> 43d4401354Smrg 44d4401354Smrg <!-- Shape attributes of type KIND. --> 45d4401354Smrg <enum name="SK"> 46f591e195Smrg <item name="Bounding"> <value>0</value> </item> 47f591e195Smrg <item name="Clip"> <value>1</value> </item> 48f591e195Smrg <item name="Input"> <value>2</value> </item> <!-- added in version 1.1 --> 49d4401354Smrg </enum> 50d4401354Smrg 51d4401354Smrg <event name="Notify" number="0"> 52d4401354Smrg <field type="KIND" name="shape_kind" enum="SK" /> 53d4401354Smrg <field type="WINDOW" name="affected_window" /> 54d4401354Smrg <field type="INT16" name="extents_x" /> 55d4401354Smrg <field type="INT16" name="extents_y" /> 56d4401354Smrg <field type="CARD16" name="extents_width" /> 57d4401354Smrg <field type="CARD16" name="extents_height" /> 58d4401354Smrg <field type="TIMESTAMP" name="server_time" /> 59d4401354Smrg <field type="BOOL" name="shaped" /> 60d4401354Smrg <pad bytes="11" /> 61d4401354Smrg </event> 62d4401354Smrg 63d4401354Smrg <request name="QueryVersion" opcode="0"> 64d4401354Smrg <reply> 65d4401354Smrg <pad bytes="1" /> 66d4401354Smrg <field type="CARD16" name="major_version" /> 67d4401354Smrg <field type="CARD16" name="minor_version" /> 68d4401354Smrg </reply> 69d4401354Smrg </request> 70d4401354Smrg 71d4401354Smrg <request name="Rectangles" opcode="1"> 72d4401354Smrg <field type="OP" name="operation" enum="SO" /> 73d4401354Smrg <field type="KIND" name="destination_kind" enum="SK" /> 74d4401354Smrg <field type="BYTE" name="ordering" enum="ClipOrdering" /> 75d4401354Smrg <pad bytes="1" /> 76d4401354Smrg <field type="WINDOW" name="destination_window" /> 77d4401354Smrg <field type="INT16" name="x_offset" /> 78d4401354Smrg <field type="INT16" name="y_offset" /> 79d4401354Smrg <list type="RECTANGLE" name="rectangles" /> 80d4401354Smrg </request> 81d4401354Smrg 82d4401354Smrg <request name="Mask" opcode="2"> 83d4401354Smrg <field type="OP" name="operation" enum="SO" /> 84d4401354Smrg <field type="KIND" name="destination_kind" enum="SK" /> 85d4401354Smrg <pad bytes="2" /> 86d4401354Smrg <field type="WINDOW" name="destination_window" /> 87d4401354Smrg <field type="INT16" name="x_offset" /> 88d4401354Smrg <field type="INT16" name="y_offset" /> 89d4401354Smrg <field type="PIXMAP" name="source_bitmap" altenum="Pixmap" /> 90d4401354Smrg </request> 91d4401354Smrg 92d4401354Smrg <request name="Combine" opcode="3"> 93d4401354Smrg <field type="OP" name="operation" enum="SO" /> 94d4401354Smrg <field type="KIND" name="destination_kind" enum="SK" /> 95d4401354Smrg <field type="KIND" name="source_kind" enum="SK" /> 96d4401354Smrg <pad bytes="1" /> 97d4401354Smrg <field type="WINDOW" name="destination_window" /> 98d4401354Smrg <field type="INT16" name="x_offset" /> 99d4401354Smrg <field type="INT16" name="y_offset" /> 100d4401354Smrg <field type="WINDOW" name="source_window" /> 101d4401354Smrg </request> 102d4401354Smrg 103d4401354Smrg <request name="Offset" opcode="4"> 104d4401354Smrg <field type="KIND" name="destination_kind" enum="SK" /> 105d4401354Smrg <pad bytes="3" /> 106d4401354Smrg <field type="WINDOW" name="destination_window" /> 107d4401354Smrg <field type="INT16" name="x_offset" /> 108d4401354Smrg <field type="INT16" name="y_offset" /> 109d4401354Smrg </request> 110d4401354Smrg 111d4401354Smrg <request name="QueryExtents" opcode="5"> 112d4401354Smrg <field type="WINDOW" name="destination_window" /> 113d4401354Smrg <reply> 114d4401354Smrg <pad bytes="1" /> 115d4401354Smrg <field type="BOOL" name="bounding_shaped" /> 116d4401354Smrg <field type="BOOL" name="clip_shaped" /> 117d4401354Smrg <pad bytes="2" /> 118d4401354Smrg <field type="INT16" name="bounding_shape_extents_x" /> 119d4401354Smrg <field type="INT16" name="bounding_shape_extents_y" /> 120d4401354Smrg <field type="CARD16" name="bounding_shape_extents_width" /> 121d4401354Smrg <field type="CARD16" name="bounding_shape_extents_height" /> 122d4401354Smrg <field type="INT16" name="clip_shape_extents_x" /> 123d4401354Smrg <field type="INT16" name="clip_shape_extents_y" /> 124d4401354Smrg <field type="CARD16" name="clip_shape_extents_width" /> 125d4401354Smrg <field type="CARD16" name="clip_shape_extents_height" /> 126d4401354Smrg </reply> 127d4401354Smrg </request> 128d4401354Smrg 129d4401354Smrg <request name="SelectInput" opcode="6"> 130d4401354Smrg <field type="WINDOW" name="destination_window" /> 131d4401354Smrg <field type="BOOL" name="enable" /> 132d4401354Smrg <pad bytes="3" /> 133d4401354Smrg </request> 134d4401354Smrg 135d4401354Smrg <request name="InputSelected" opcode="7"> 136d4401354Smrg <field type="WINDOW" name="destination_window" /> 137d4401354Smrg <reply> 138d4401354Smrg <field type="BOOL" name="enabled" /> 139d4401354Smrg </reply> 140d4401354Smrg </request> 141d4401354Smrg 142d4401354Smrg <request name="GetRectangles" opcode="8"> 143d4401354Smrg <field type="WINDOW" name="window" /> 144d4401354Smrg <field type="KIND" name="source_kind" enum="SK" /> 145d4401354Smrg <pad bytes="3" /> 146d4401354Smrg <reply> 147d4401354Smrg <field type="BYTE" name="ordering" enum="ClipOrdering" /> 148d4401354Smrg <field type="CARD32" name="rectangles_len" /> 149d4401354Smrg <pad bytes="20" /> 150d4401354Smrg <list type="RECTANGLE" name="rectangles"> 151d4401354Smrg <fieldref>rectangles_len</fieldref> 152d4401354Smrg </list> 153d4401354Smrg </reply> 154d4401354Smrg </request> 155d4401354Smrg</xcb> 156