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