1 <?xml version="1.0" encoding="utf-8"?>
3 Copyright (C) 2001-2004 Bart Massey, Jamey Sharp, and Josh Triplett.
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
13 The above copyright notice and this permission notice shall be included in all
14 copies or substantial portions of the Software.
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
20 ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
21 WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23 Except as contained in this notice, the names of the authors or their
24 institutions shall not be used in advertising or otherwise to promote the
25 sale, use or other dealings in this Software without prior written
26 authorization from the authors.
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>
32 <typedef oldname="CARD8" newname="OP" />
33 <typedef oldname="CARD8" newname="KIND" />
35 <!-- Shape attributes of type OP. -->
39 <item name="Intersect" />
40 <item name="Subtract" />
41 <item name="Invert" />
44 <!-- Shape attributes of type KIND. -->
46 <item name="Bounding" />
48 <item name="Input" /> <!-- added in version 1.1 -->
51 <event name="Notify" number="0">
52 <field type="KIND" name="shape_kind" />
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" />
62 <request name="QueryVersion" opcode="0">
65 <field type="CARD16" name="major_version" />
66 <field type="CARD16" name="minor_version" />
70 <request name="Rectangles" opcode="1">
71 <field type="OP" name="operation" />
72 <field type="KIND" name="destination_kind" />
73 <field type="BYTE" name="ordering" />
75 <field type="WINDOW" name="destination_window" />
76 <field type="INT16" name="x_offset" />
77 <field type="INT16" name="y_offset" />
78 <list type="RECTANGLE" name="rectangles" />
81 <request name="Mask" opcode="2">
82 <field type="OP" name="operation" />
83 <field type="KIND" name="destination_kind" />
85 <field type="WINDOW" name="destination_window" />
86 <field type="INT16" name="x_offset" />
87 <field type="INT16" name="y_offset" />
88 <field type="PIXMAP" name="source_bitmap" />
91 <request name="Combine" opcode="3">
92 <field type="OP" name="operation" />
93 <field type="KIND" name="destination_kind" />
94 <field type="KIND" name="source_kind" />
96 <field type="WINDOW" name="destination_window" />
97 <field type="INT16" name="x_offset" />
98 <field type="INT16" name="y_offset" />
99 <field type="WINDOW" name="source_window" />
102 <request name="Offset" opcode="4">
103 <field type="KIND" name="destination_kind" />
105 <field type="WINDOW" name="destination_window" />
106 <field type="INT16" name="x_offset" />
107 <field type="INT16" name="y_offset" />
110 <request name="QueryExtents" opcode="5">
111 <field type="WINDOW" name="destination_window" />
114 <field type="BOOL" name="bounding_shaped" />
115 <field type="BOOL" name="clip_shaped" />
117 <field type="INT16" name="bounding_shape_extents_x" />
118 <field type="INT16" name="bounding_shape_extents_y" />
119 <field type="CARD16" name="bounding_shape_extents_width" />
120 <field type="CARD16" name="bounding_shape_extents_height" />
121 <field type="INT16" name="clip_shape_extents_x" />
122 <field type="INT16" name="clip_shape_extents_y" />
123 <field type="CARD16" name="clip_shape_extents_width" />
124 <field type="CARD16" name="clip_shape_extents_height" />
128 <request name="SelectInput" opcode="6">
129 <field type="WINDOW" name="destination_window" />
130 <field type="BOOL" name="enable" />
133 <request name="InputSelected" opcode="7">
134 <field type="WINDOW" name="destination_window" />
136 <field type="BOOL" name="enabled" />
140 <request name="GetRectangles" opcode="8">
141 <field type="WINDOW" name="window" />
142 <field type="KIND" name="source_kind" />
144 <field type="BYTE" name="ordering" />
145 <field type="CARD32" name="rectangles_len" />
146 <list type="RECTANGLE" name="rectangles">
147 <fieldref>rectangles_len</fieldref>