UNPKG

x11

Version:

A pure node.js JavaScript client implementing X Window (X11) protocol and extensions.

1,347 lines (1,235 loc) 190 kB
<?xml version="1.0" encoding="utf-8"?> <!-- Copyright (C) 2001-2004 Bart Massey, Jamey Sharp, and Josh Triplett. All Rights Reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the names of the authors or their institutions shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the authors. --> <xcb header="xproto"> <!-- Core protocol types --> <struct name="CHAR2B"> <field type="CARD8" name="byte1" /> <field type="CARD8" name="byte2" /> </struct> <xidtype name="WINDOW" /> <xidtype name="PIXMAP" /> <xidtype name="CURSOR" /> <xidtype name="FONT" /> <xidtype name="GCONTEXT" /> <xidtype name="COLORMAP" /> <xidtype name="ATOM" /> <xidunion name="DRAWABLE"> <type>WINDOW</type> <type>PIXMAP</type> </xidunion> <xidunion name="FONTABLE"> <type>FONT</type> <type>GCONTEXT</type> </xidunion> <typedef oldname="CARD32" newname="VISUALID" /> <typedef oldname="CARD32" newname="TIMESTAMP" /> <typedef oldname="CARD32" newname="KEYSYM" /> <typedef oldname="CARD8" newname="KEYCODE" /> <typedef oldname="CARD8" newname="BUTTON" /> <struct name="POINT"> <field type="INT16" name="x" /> <field type="INT16" name="y" /> </struct> <struct name="RECTANGLE"> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> </struct> <struct name="ARC"> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="INT16" name="angle1" /> <field type="INT16" name="angle2" /> </struct> <!-- Connection setup-related types --> <struct name="FORMAT"> <field type="CARD8" name="depth" /> <field type="CARD8" name="bits_per_pixel" /> <field type="CARD8" name="scanline_pad" /> <pad bytes="5" /> </struct> <enum name="VisualClass"> <item name="StaticGray"> <value>0</value></item> <item name="GrayScale"> <value>1</value></item> <item name="StaticColor"><value>2</value></item> <item name="PseudoColor"><value>3</value></item> <item name="TrueColor"> <value>4</value></item> <item name="DirectColor"><value>5</value></item> </enum> <struct name="VISUALTYPE"> <field type="VISUALID" name="visual_id" /> <field type="CARD8" name="class" enum="VisualClass" /> <field type="CARD8" name="bits_per_rgb_value" /> <field type="CARD16" name="colormap_entries" /> <field type="CARD32" name="red_mask" /> <field type="CARD32" name="green_mask" /> <field type="CARD32" name="blue_mask" /> <pad bytes="4" /> </struct> <struct name="DEPTH"> <field type="CARD8" name="depth" /> <pad bytes="1" /> <field type="CARD16" name="visuals_len" /> <pad bytes="4" /> <list type="VISUALTYPE" name="visuals"> <fieldref>visuals_len</fieldref> </list> </struct> <enum name="EventMask"> <item name="NoEvent"> <value>0</value></item> <item name="KeyPress"> <bit>0</bit></item> <item name="KeyRelease"> <bit>1</bit></item> <item name="ButtonPress"> <bit>2</bit></item> <item name="ButtonRelease"> <bit>3</bit></item> <item name="EnterWindow"> <bit>4</bit></item> <item name="LeaveWindow"> <bit>5</bit></item> <item name="PointerMotion"> <bit>6</bit></item> <item name="PointerMotionHint"> <bit>7</bit></item> <item name="Button1Motion"> <bit>8</bit></item> <item name="Button2Motion"> <bit>9</bit></item> <item name="Button3Motion"> <bit>10</bit></item> <item name="Button4Motion"> <bit>11</bit></item> <item name="Button5Motion"> <bit>12</bit></item> <item name="ButtonMotion"> <bit>13</bit></item> <item name="KeymapState"> <bit>14</bit></item> <item name="Exposure"> <bit>15</bit></item> <item name="VisibilityChange"> <bit>16</bit></item> <item name="StructureNotify"> <bit>17</bit></item> <item name="ResizeRedirect"> <bit>18</bit></item> <item name="SubstructureNotify"> <bit>19</bit></item> <item name="SubstructureRedirect"><bit>20</bit></item> <item name="FocusChange"> <bit>21</bit></item> <item name="PropertyChange"> <bit>22</bit></item> <item name="ColorMapChange"> <bit>23</bit></item> <item name="OwnerGrabButton"> <bit>24</bit></item> </enum> <enum name="BackingStore"> <item name="NotUseful"> <value>0</value></item> <item name="WhenMapped"><value>1</value></item> <item name="Always"> <value>2</value></item> </enum> <struct name="SCREEN"> <field type="WINDOW" name="root" /> <field type="COLORMAP" name="default_colormap" /> <field type="CARD32" name="white_pixel" /> <field type="CARD32" name="black_pixel" /> <field type="CARD32" name="current_input_masks" mask="EventMask" /> <field type="CARD16" name="width_in_pixels" /> <field type="CARD16" name="height_in_pixels" /> <field type="CARD16" name="width_in_millimeters" /> <field type="CARD16" name="height_in_millimeters" /> <field type="CARD16" name="min_installed_maps" /> <field type="CARD16" name="max_installed_maps" /> <field type="VISUALID" name="root_visual" /> <field type="BYTE" name="backing_stores" enum="BackingStore" /> <field type="BOOL" name="save_unders" /> <field type="CARD8" name="root_depth" /> <field type="CARD8" name="allowed_depths_len" /> <list type="DEPTH" name="allowed_depths"> <fieldref>allowed_depths_len</fieldref> </list> </struct> <struct name="SetupRequest"> <field type="CARD8" name="byte_order" /> <pad bytes="1" /> <field type="CARD16" name="protocol_major_version" /> <field type="CARD16" name="protocol_minor_version" /> <field type="CARD16" name="authorization_protocol_name_len" /> <field type="CARD16" name="authorization_protocol_data_len" /> <pad bytes="2" /> <list type="char" name="authorization_protocol_name"> <fieldref>authorization_protocol_name_len</fieldref> </list> <list type="char" name="authorization_protocol_data"> <fieldref>authorization_protocol_data_len</fieldref> </list> </struct> <struct name="SetupFailed"> <field type="CARD8" name="status" /> <!-- always 0 -> Failed --> <field type="CARD8" name="reason_len" /> <field type="CARD16" name="protocol_major_version" /> <field type="CARD16" name="protocol_minor_version" /> <field type="CARD16" name="length" /> <list type="char" name="reason"> <fieldref>reason_len</fieldref> </list> </struct> <struct name="SetupAuthenticate"> <field type="CARD8" name="status" /> <!-- always 2 -> Authenticate --> <pad bytes="5" /> <field type="CARD16" name="length" /> <list type="char" name="reason"> <op op="*"> <fieldref>length</fieldref> <value>4</value> </op> </list> </struct> <enum name="ImageOrder"> <item name="LSBFirst"><value>0</value></item> <item name="MSBFirst"><value>1</value></item> </enum> <struct name="Setup"> <field type="CARD8" name="status" /> <!-- always 1 -> Success --> <pad bytes="1" /> <field type="CARD16" name="protocol_major_version" /> <field type="CARD16" name="protocol_minor_version" /> <field type="CARD16" name="length" /> <field type="CARD32" name="release_number" /> <field type="CARD32" name="resource_id_base" /> <field type="CARD32" name="resource_id_mask" /> <field type="CARD32" name="motion_buffer_size" /> <field type="CARD16" name="vendor_len" /> <field type="CARD16" name="maximum_request_length" /> <field type="CARD8" name="roots_len" /> <field type="CARD8" name="pixmap_formats_len" /> <field type="CARD8" name="image_byte_order" enum="ImageOrder" /> <field type="CARD8" name="bitmap_format_bit_order" enum="ImageOrder" /> <field type="CARD8" name="bitmap_format_scanline_unit" /> <field type="CARD8" name="bitmap_format_scanline_pad" /> <field type="KEYCODE" name="min_keycode" /> <field type="KEYCODE" name="max_keycode" /> <pad bytes="4" /> <list type="char" name="vendor"> <fieldref>vendor_len</fieldref> </list> <list type="FORMAT" name="pixmap_formats"> <fieldref>pixmap_formats_len</fieldref> </list> <list type="SCREEN" name="roots"> <fieldref>roots_len</fieldref> </list> </struct> <!-- Core event types --> <enum name="ModMask"> <item name="Shift"> <bit>0</bit></item> <item name="Lock"> <bit>1</bit></item> <item name="Control"><bit>2</bit></item> <item name="1"> <bit>3</bit></item> <item name="2"> <bit>4</bit></item> <item name="3"> <bit>5</bit></item> <item name="4"> <bit>6</bit></item> <item name="5"> <bit>7</bit></item> <item name="Any"> <bit>15</bit></item> </enum> <enum name="KeyButMask"> <item name="Shift"> <bit>0</bit></item> <item name="Lock"> <bit>1</bit></item> <item name="Control"><bit>2</bit></item> <item name="Mod1"> <bit>3</bit></item> <item name="Mod2"> <bit>4</bit></item> <item name="Mod3"> <bit>5</bit></item> <item name="Mod4"> <bit>6</bit></item> <item name="Mod5"> <bit>7</bit></item> <item name="Button1"><bit>8</bit></item> <item name="Button2"><bit>9</bit></item> <item name="Button3"><bit>10</bit></item> <item name="Button4"><bit>11</bit></item> <item name="Button5"><bit>12</bit></item> </enum> <enum name="Window"> <item name="None"> <value>0</value></item> </enum> <event name="KeyPress" number="2"> <field type="KEYCODE" name="detail" /> <field type="TIMESTAMP" name="time" /> <field type="WINDOW" name="root" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="child" altenum="Window" /> <field type="INT16" name="root_x" /> <field type="INT16" name="root_y" /> <field type="INT16" name="event_x" /> <field type="INT16" name="event_y" /> <field type="CARD16" name="state" mask="KeyButMask" /> <field type="BOOL" name="same_screen" /> <pad bytes="1" /> <doc> <brief>a key was pressed/released</brief> <field name="detail"><![CDATA[ The keycode (a number representing a physical key on the keyboard) of the key which was pressed. ]]></field> <field name="time"><![CDATA[ Time when the event was generated (in milliseconds). ]]></field> <field name="root"><![CDATA[ The root window of `child`. ]]></field> <field name="same_screen"><![CDATA[ Whether the `event` window is on the same screen as the `root` window. ]]></field> <field name="event_x"><![CDATA[ If `same_screen` is true, this is the X coordinate relative to the `event` window's origin. Otherwise, `event_x` will be set to zero. ]]></field> <field name="event_y"><![CDATA[ If `same_screen` is true, this is the Y coordinate relative to the `event` window's origin. Otherwise, `event_y` will be set to zero. ]]></field> <field name="root_x"><![CDATA[ The X coordinate of the pointer relative to the `root` window at the time of the event. ]]></field> <field name="root_y"><![CDATA[ The Y coordinate of the pointer relative to the `root` window at the time of the event. ]]></field> <field name="state"><![CDATA[ The logical state of the pointer buttons and modifier keys just prior to the event. ]]></field> <see type="request" name="GrabKey" /> <see type="request" name="GrabKeyboard" /> </doc> </event> <eventcopy name="KeyRelease" number="3" ref="KeyPress" /> <enum name="ButtonMask"> <item name="1"> <bit>8</bit></item> <item name="2"> <bit>9</bit></item> <item name="3"> <bit>10</bit></item> <item name="4"> <bit>11</bit></item> <item name="5"> <bit>12</bit></item> <item name="Any"> <bit>15</bit></item> </enum> <event name="ButtonPress" number="4"> <field type="BUTTON" name="detail" /> <field type="TIMESTAMP" name="time" /> <field type="WINDOW" name="root" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="child" altenum="Window" /> <field type="INT16" name="root_x" /> <field type="INT16" name="root_y" /> <field type="INT16" name="event_x" /> <field type="INT16" name="event_y" /> <field type="CARD16" name="state" mask="KeyButMask" /> <field type="BOOL" name="same_screen" /> <pad bytes="1" /> <doc> <brief>a mouse button was pressed/released</brief> <field name="detail"><![CDATA[ The keycode (a number representing a physical key on the keyboard) of the key which was pressed. ]]></field> <field name="time"><![CDATA[ Time when the event was generated (in milliseconds). ]]></field> <field name="root"><![CDATA[ The root window of `child`. ]]></field> <field name="same_screen"><![CDATA[ Whether the `event` window is on the same screen as the `root` window. ]]></field> <field name="event_x"><![CDATA[ If `same_screen` is true, this is the X coordinate relative to the `event` window's origin. Otherwise, `event_x` will be set to zero. ]]></field> <field name="event_y"><![CDATA[ If `same_screen` is true, this is the Y coordinate relative to the `event` window's origin. Otherwise, `event_y` will be set to zero. ]]></field> <field name="root_x"><![CDATA[ The X coordinate of the pointer relative to the `root` window at the time of the event. ]]></field> <field name="root_y"><![CDATA[ The Y coordinate of the pointer relative to the `root` window at the time of the event. ]]></field> <field name="state"><![CDATA[ The logical state of the pointer buttons and modifier keys just prior to the event. ]]></field> <see type="request" name="GrabButton" /> <see type="request" name="GrabPointer" /> </doc> </event> <eventcopy name="ButtonRelease" number="5" ref="ButtonPress" /> <!-- MotionNotify detail --> <enum name="Motion"> <item name="Normal"><value>0</value></item> <item name="Hint"> <value>1</value></item> </enum> <event name="MotionNotify" number="6"> <field type="BYTE" name="detail" enum="Motion" /> <field type="TIMESTAMP" name="time" /> <field type="WINDOW" name="root" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="child" altenum="Window" /> <field type="INT16" name="root_x" /> <field type="INT16" name="root_y" /> <field type="INT16" name="event_x" /> <field type="INT16" name="event_y" /> <field type="CARD16" name="state" mask="KeyButMask" /> <field type="BOOL" name="same_screen" /> <pad bytes="1" /> <doc> <brief>a key was pressed</brief> <field name="detail"><![CDATA[ The keycode (a number representing a physical key on the keyboard) of the key which was pressed. ]]></field> <field name="time"><![CDATA[ Time when the event was generated (in milliseconds). ]]></field> <field name="root"><![CDATA[ The root window of `child`. ]]></field> <field name="same_screen"><![CDATA[ Whether the `event` window is on the same screen as the `root` window. ]]></field> <field name="event_x"><![CDATA[ If `same_screen` is true, this is the X coordinate relative to the `event` window's origin. Otherwise, `event_x` will be set to zero. ]]></field> <field name="event_y"><![CDATA[ If `same_screen` is true, this is the Y coordinate relative to the `event` window's origin. Otherwise, `event_y` will be set to zero. ]]></field> <field name="root_x"><![CDATA[ The X coordinate of the pointer relative to the `root` window at the time of the event. ]]></field> <field name="root_y"><![CDATA[ The Y coordinate of the pointer relative to the `root` window at the time of the event. ]]></field> <field name="state"><![CDATA[ The logical state of the pointer buttons and modifier keys just prior to the event. ]]></field> <see type="request" name="GrabKey" /> <see type="request" name="GrabKeyboard" /> </doc> </event> <enum name="NotifyDetail"> <item name="Ancestor"> <value>0</value></item> <item name="Virtual"> <value>1</value></item> <item name="Inferior"> <value>2</value></item> <item name="Nonlinear"> <value>3</value></item> <item name="NonlinearVirtual"><value>4</value></item> <item name="Pointer"> <value>5</value></item> <item name="PointerRoot"> <value>6</value></item> <item name="None"> <value>7</value></item> </enum> <enum name="NotifyMode"> <item name="Normal"> <value>0</value></item> <item name="Grab"> <value>1</value></item> <item name="Ungrab"> <value>2</value></item> <item name="WhileGrabbed"><value>3</value></item> </enum> <event name="EnterNotify" number="7"> <field type="BYTE" name="detail" enum="NotifyDetail" /> <field type="TIMESTAMP" name="time" /> <field type="WINDOW" name="root" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="child" altenum="Window" /> <field type="INT16" name="root_x" /> <field type="INT16" name="root_y" /> <field type="INT16" name="event_x" /> <field type="INT16" name="event_y" /> <field type="CARD16" name="state" mask="KeyButMask" /> <field type="BYTE" name="mode" enum="NotifyMode" /> <field type="BYTE" name="same_screen_focus" /> <doc> <brief>the pointer is in a different window</brief> <field name="event"><![CDATA[ The reconfigured window or its parent, depending on whether `StructureNotify` or `SubstructureNotify` was selected. ]]></field> <field name="window"><![CDATA[ The window that was unmapped. ]]></field> <field name="root"><![CDATA[ The root window for the final cursor position. ]]></field> <field name="root_x"><![CDATA[ The pointer X coordinate relative to `root`'s origin at the time of the event. ]]></field> <field name="root_y"><![CDATA[ The pointer Y coordinate relative to `root`'s origin at the time of the event. ]]></field> <field name="event_x"><![CDATA[ If `event` is on the same screen as `root`, this is the pointer X coordinate relative to the event window's origin. ]]></field> <field name="event_y"><![CDATA[ If `event` is on the same screen as `root`, this is the pointer Y coordinate relative to the event window's origin. ]]></field> <field name="mode" /> </doc> </event> <eventcopy name="LeaveNotify" number="8" ref="EnterNotify" /> <event name="FocusIn" number="9"> <field type="BYTE" name="detail" enum="NotifyDetail" /> <field type="WINDOW" name="event" /> <field type="BYTE" name="mode" enum="NotifyMode" /> <pad bytes="3" /> <doc> <brief>NOT YET DOCUMENTED</brief> <field name="event"><![CDATA[ The window on which the focus event was generated. This is the window used by the X server to report the event. ]]></field> <!-- enum documentation is sufficient --> <field name="detail" /> <field name="mode" /> </doc> </event> <eventcopy name="FocusOut" number="10" ref="FocusIn" /> <event name="KeymapNotify" number="11" no-sequence-number="true"> <list type="CARD8" name="keys"><value>31</value></list> </event> <event name="Expose" number="12"> <pad bytes="1" /> <field type="WINDOW" name="window" /> <field type="CARD16" name="x" /> <field type="CARD16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="CARD16" name="count" /> <pad bytes="2" /> <doc> <brief>NOT YET DOCUMENTED</brief> <field name="window"><![CDATA[ The exposed (damaged) window. ]]></field> <field name="x"><![CDATA[ The X coordinate of the left-upper corner of the exposed rectangle, relative to the `window`'s origin. ]]></field> <field name="y"><![CDATA[ The Y coordinate of the left-upper corner of the exposed rectangle, relative to the `window`'s origin. ]]></field> <field name="width"><![CDATA[ The width of the exposed rectangle. ]]></field> <field name="height"><![CDATA[ The height of the exposed rectangle. ]]></field> <field name="count"><![CDATA[ The amount of `Expose` events following this one. Simple applications that do not want to optimize redisplay by distinguishing between subareas of its window can just ignore all Expose events with nonzero counts and perform full redisplays on events with zero counts. ]]></field> </doc> </event> <event name="GraphicsExposure" number="13"> <pad bytes="1" /> <field type="DRAWABLE" name="drawable" /> <field type="CARD16" name="x" /> <field type="CARD16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="CARD16" name="minor_opcode" /> <field type="CARD16" name="count" /> <field type="CARD8" name="major_opcode" /> <pad bytes="3" /> </event> <event name="NoExposure" number="14"> <pad bytes="1" /> <field type="DRAWABLE" name="drawable" /> <field type="CARD16" name="minor_opcode" /> <field type="CARD8" name="major_opcode" /> <pad bytes="1" /> </event> <enum name="Visibility"> <item name="Unobscured"> <value>0</value></item> <item name="PartiallyObscured"><value>1</value></item> <item name="FullyObscured"> <value>2</value></item> </enum> <event name="VisibilityNotify" number="15"> <pad bytes="1" /> <field type="WINDOW" name="window" /> <field type="BYTE" name="state" enum="Visibility" /> <pad bytes="3" /> </event> <event name="CreateNotify" number="16"> <pad bytes="1" /> <field type="WINDOW" name="parent" /> <field type="WINDOW" name="window" /> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="CARD16" name="border_width" /> <field type="BOOL" name="override_redirect" /> <pad bytes="1" /> </event> <event name="DestroyNotify" number="17"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <doc> <brief>a window is destroyed</brief> <field name="event"><![CDATA[ The reconfigured window or its parent, depending on whether `StructureNotify` or `SubstructureNotify` was selected. ]]></field> <field name="window"><![CDATA[ The window that is destroyed. ]]></field> <see type="request" name="DestroyWindow" /> </doc> </event> <event name="UnmapNotify" number="18"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <field type="BOOL" name="from_configure" /> <pad bytes="3" /> <doc> <brief>a window is unmapped</brief> <field name="event"><![CDATA[ The reconfigured window or its parent, depending on whether `StructureNotify` or `SubstructureNotify` was selected. ]]></field> <field name="window"><![CDATA[ The window that was unmapped. ]]></field> <field name="from_configure"><![CDATA[ Set to 1 if the event was generated as a result of a resizing of the window's parent when `window` had a win_gravity of `UnmapGravity`. ]]></field> <see type="request" name="UnmapWindow" /> </doc> </event> <event name="MapNotify" number="19"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <field type="BOOL" name="override_redirect" /> <pad bytes="3" /> <doc> <brief>a window was mapped</brief> <field name="event"><![CDATA[ The window which was mapped or its parent, depending on whether `StructureNotify` or `SubstructureNotify` was selected. ]]></field> <field name="window"><![CDATA[ The window that was mapped. ]]></field> <field name="override_redirect"><![CDATA[ Window managers should ignore this window if `override_redirect` is 1. ]]></field> <see type="request" name="MapWindow" /> </doc> </event> <event name="MapRequest" number="20"> <pad bytes="1" /> <field type="WINDOW" name="parent" /> <field type="WINDOW" name="window" /> <doc> <brief>window wants to be mapped</brief> <field name="parent"><![CDATA[ The parent of `window`. ]]></field> <field name="window"><![CDATA[ The window to be mapped. ]]></field> <see type="request" name="MapWindow" /> </doc> </event> <event name="ReparentNotify" number="21"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <field type="WINDOW" name="parent" /> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="BOOL" name="override_redirect" /> <pad bytes="3" /> </event> <event name="ConfigureNotify" number="22"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <field type="WINDOW" name="above_sibling" altenum="Window" /> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="CARD16" name="border_width" /> <field type="BOOL" name="override_redirect" /> <pad bytes="1" /> <doc> <brief>NOT YET DOCUMENTED</brief> <field name="event"><![CDATA[ The reconfigured window or its parent, depending on whether `StructureNotify` or `SubstructureNotify` was selected. ]]></field> <field name="window"><![CDATA[ The window whose size, position, border, and/or stacking order was changed. ]]></field> <field name="above_sibling"><![CDATA[ If `XCB_NONE`, the `window` is on the bottom of the stack with respect to sibling windows. However, if set to a sibling window, the `window` is placed on top of this sibling window. ]]></field> <field name="x"><![CDATA[ The X coordinate of the upper-left outside corner of `window`, relative to the parent window's origin. ]]></field> <field name="y"><![CDATA[ The Y coordinate of the upper-left outside corner of `window`, relative to the parent window's origin. ]]></field> <field name="width"><![CDATA[ The inside width of `window`, not including the border. ]]></field> <field name="height"><![CDATA[ The inside height of `window`, not including the border. ]]></field> <field name="border_width"><![CDATA[ The border width of `window`. ]]></field> <field name="override_redirect"><![CDATA[ Window managers should ignore this window if `override_redirect` is 1. ]]></field> <see type="request" name="FreeColormap" /> </doc> </event> <event name="ConfigureRequest" number="23"> <field type="BYTE" name="stack_mode" enum="StackMode" /> <field type="WINDOW" name="parent" /> <field type="WINDOW" name="window" /> <field type="WINDOW" name="sibling" altenum="Window" /> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="CARD16" name="border_width" /> <field type="CARD16" name="value_mask" mask="ConfigWindow" /> </event> <event name="GravityNotify" number="24"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <field type="INT16" name="x" /> <field type="INT16" name="y" /> </event> <event name="ResizeRequest" number="25"> <pad bytes="1" /> <field type="WINDOW" name="window" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> </event> <enum name="Place"> <item name="OnTop"> <value>0</value></item> <item name="OnBottom"><value>1</value></item> <doc> <field name="OnTop"><![CDATA[ The window is now on top of all siblings. ]]></field> <field name="OnBottom"><![CDATA[ The window is now below all siblings. ]]></field> </doc> </enum> <event name="CirculateNotify" number="26"> <pad bytes="1" /> <field type="WINDOW" name="event" /> <field type="WINDOW" name="window" /> <pad bytes="4" /> <field type="BYTE" name="place" enum="Place" /> <pad bytes="3" /> <doc> <brief>NOT YET DOCUMENTED</brief> <field name="event"><![CDATA[ Either the restacked window or its parent, depending on whether `StructureNotify` or `SubstructureNotify` was selected. ]]></field> <field name="window"><![CDATA[ The restacked window. ]]></field> <!-- the enum doc is sufficient --> <field name="place" /> <see type="request" name="CirculateWindow" /> </doc> </event> <eventcopy name="CirculateRequest" number="27" ref="CirculateNotify" /> <enum name="Property"> <item name="NewValue"><value>0</value></item> <item name="Delete"> <value>1</value></item> </enum> <event name="PropertyNotify" number="28"> <pad bytes="1" /> <field type="WINDOW" name="window" /> <field type="ATOM" name="atom" /> <field type="TIMESTAMP" name="time" /> <field type="BYTE" name="state" enum="Property" /> <pad bytes="3" /> <doc> <brief>a window property changed</brief> <field name="window"><![CDATA[ The window whose associated property was changed. ]]></field> <field name="atom"><![CDATA[ The property's atom, to indicate which property was changed. ]]></field> <field name="time"><![CDATA[ A timestamp of the server time when the property was changed. ]]></field> <!-- enum documentation is sufficient --> <field name="state" /> <see type="request" name="ChangeProperty" /> </doc> </event> <event name="SelectionClear" number="29"> <pad bytes="1" /> <field type="TIMESTAMP" name="time" /> <field type="WINDOW" name="owner" /> <field type="ATOM" name="selection" /> </event> <enum name="Time"> <item name="CurrentTime"> <value>0</value> </item> </enum> <enum name="Atom"> <item name="None"> <value>0</value></item> <item name="Any"> <value>0</value></item> <item name="PRIMARY" /> <item name="SECONDARY" /> <item name="ARC" /> <item name="ATOM" /> <item name="BITMAP" /> <item name="CARDINAL" /> <item name="COLORMAP" /> <item name="CURSOR" /> <item name="CUT_BUFFER0" /> <item name="CUT_BUFFER1" /> <item name="CUT_BUFFER2" /> <item name="CUT_BUFFER3" /> <item name="CUT_BUFFER4" /> <item name="CUT_BUFFER5" /> <item name="CUT_BUFFER6" /> <item name="CUT_BUFFER7" /> <item name="DRAWABLE" /> <item name="FONT" /> <item name="INTEGER" /> <item name="PIXMAP" /> <item name="POINT" /> <item name="RECTANGLE" /> <item name="RESOURCE_MANAGER" /> <item name="RGB_COLOR_MAP" /> <item name="RGB_BEST_MAP" /> <item name="RGB_BLUE_MAP" /> <item name="RGB_DEFAULT_MAP" /> <item name="RGB_GRAY_MAP" /> <item name="RGB_GREEN_MAP" /> <item name="RGB_RED_MAP" /> <item name="STRING" /> <item name="VISUALID" /> <item name="WINDOW" /> <item name="WM_COMMAND" /> <item name="WM_HINTS" /> <item name="WM_CLIENT_MACHINE" /> <item name="WM_ICON_NAME" /> <item name="WM_ICON_SIZE" /> <item name="WM_NAME" /> <item name="WM_NORMAL_HINTS" /> <item name="WM_SIZE_HINTS" /> <item name="WM_ZOOM_HINTS" /> <item name="MIN_SPACE" /> <item name="NORM_SPACE" /> <item name="MAX_SPACE" /> <item name="END_SPACE" /> <item name="SUPERSCRIPT_X" /> <item name="SUPERSCRIPT_Y" /> <item name="SUBSCRIPT_X" /> <item name="SUBSCRIPT_Y" /> <item name="UNDERLINE_POSITION" /> <item name="UNDERLINE_THICKNESS" /> <item name="STRIKEOUT_ASCENT" /> <item name="STRIKEOUT_DESCENT" /> <item name="ITALIC_ANGLE" /> <item name="X_HEIGHT" /> <item name="QUAD_WIDTH" /> <item name="WEIGHT" /> <item name="POINT_SIZE" /> <item name="RESOLUTION" /> <item name="COPYRIGHT" /> <item name="NOTICE" /> <item name="FONT_NAME" /> <item name="FAMILY_NAME" /> <item name="FULL_NAME" /> <item name="CAP_HEIGHT" /> <item name="WM_CLASS" /> <item name="WM_TRANSIENT_FOR" /> </enum> <event name="SelectionRequest" number="30"> <pad bytes="1" /> <field type="TIMESTAMP" name="time" altenum="Time" /> <field type="WINDOW" name="owner" /> <field type="WINDOW" name="requestor" /> <field type="ATOM" name="selection" /> <field type="ATOM" name="target" /> <field type="ATOM" name="property" altenum="Atom" /> </event> <event name="SelectionNotify" number="31"> <pad bytes="1" /> <field type="TIMESTAMP" name="time" altenum="Time" /> <field type="WINDOW" name="requestor" /> <field type="ATOM" name="selection" /> <field type="ATOM" name="target" /> <field type="ATOM" name="property" altenum="Atom" /> </event> <enum name="ColormapState"> <item name="Uninstalled"><value>0</value></item> <item name="Installed"> <value>1</value></item> <doc> <field name="Uninstalled"><![CDATA[ The colormap was uninstalled. ]]></field> <field name="Installed"><![CDATA[ The colormap was installed. ]]></field> </doc> </enum> <enum name="Colormap"> <item name="None"> <value>0</value></item> </enum> <event name="ColormapNotify" number="32"> <pad bytes="1" /> <field type="WINDOW" name="window" /> <field type="COLORMAP" name="colormap" altenum="Colormap" /> <field type="BOOL" name="new" /> <field type="BYTE" name="state" enum="ColormapState" /> <pad bytes="2" /> <doc> <brief>the colormap for some window changed</brief> <field name="window"><![CDATA[ The window whose associated colormap is changed, installed or uninstalled. ]]></field> <field name="colormap"><![CDATA[ The colormap which is changed, installed or uninstalled. This is `XCB_NONE` when the colormap is changed by a call to `FreeColormap`. ]]></field> <field name="_new"><![CDATA[ Indicates whether the colormap was changed (1) or installed/uninstalled (0). ]]></field> <!-- enum doc is sufficient --> <field name="state" /> <see type="request" name="FreeColormap" /> </doc> </event> <union name="ClientMessageData"> <!-- The format member of the ClientMessage event determines which array to use. --> <list type="CARD8" name="data8" ><value>20</value></list> <!-- 8 --> <list type="CARD16" name="data16"><value>10</value></list> <!-- 16 --> <list type="CARD32" name="data32"><value>5</value></list> <!-- 32 --> </union> <event name="ClientMessage" number="33"> <field type="CARD8" name="format" /> <!-- 8, 16, or 32. --> <field type="WINDOW" name="window" /> <field type="ATOM" name="type" /> <field type="ClientMessageData" name="data" /> <doc> <brief>NOT YET DOCUMENTED</brief> <description><![CDATA[ This event represents a ClientMessage, sent by another X11 client. An example is a client sending the `_NET_WM_STATE` ClientMessage to the root window to indicate the fullscreen window state, effectively requesting that the window manager puts it into fullscreen mode. ]]></description> <field name="format"><![CDATA[ Specifies how to interpret `data`. Can be either 8, 16 or 32. ]]></field> <field name="type"><![CDATA[ An atom which indicates how the data should be interpreted by the receiving client. ]]></field> <field name="data"><![CDATA[ The data itself (20 bytes max). ]]></field> <see type="request" name="SendEvent" /> </doc> </event> <enum name="Mapping"> <item name="Modifier"><value>0</value></item> <item name="Keyboard"><value>1</value></item> <item name="Pointer"> <value>2</value></item> </enum> <event name="MappingNotify" number="34"> <pad bytes="1" /> <field type="BYTE" name="request" enum="Mapping" /> <field type="KEYCODE" name="first_keycode" /> <field type="CARD8" name="count" /> <pad bytes="1" /> <doc> <brief>keyboard mapping changed</brief> <!-- enum documentation is sufficient --> <field name="request" /> <field name="first_keycode"><![CDATA[ The first number in the range of the altered mapping. ]]></field> <field name="count"><![CDATA[ The number of keycodes altered. ]]></field> </doc> </event> <!-- Core error types --> <error name="Request" number="1"> <field type="CARD32" name="bad_value" /> <field type="CARD16" name="minor_opcode" /> <field type="CARD8" name="major_opcode" /> <pad bytes="1" /> </error> <error name="Value" number="2"> <field type="CARD32" name="bad_value" /> <field type="CARD16" name="minor_opcode" /> <field type="CARD8" name="major_opcode" /> <pad bytes="1" /> </error> <errorcopy name="Window" number="3" ref="Value" /> <errorcopy name="Pixmap" number="4" ref="Value" /> <errorcopy name="Atom" number="5" ref="Value" /> <errorcopy name="Cursor" number="6" ref="Value" /> <errorcopy name="Font" number="7" ref="Value" /> <errorcopy name="Match" number="8" ref="Request" /> <errorcopy name="Drawable" number="9" ref="Value" /> <errorcopy name="Access" number="10" ref="Request" /> <errorcopy name="Alloc" number="11" ref="Request" /> <errorcopy name="Colormap" number="12" ref="Value" /> <errorcopy name="GContext" number="13" ref="Value" /> <errorcopy name="IDChoice" number="14" ref="Value" /> <errorcopy name="Name" number="15" ref="Request" /> <errorcopy name="Length" number="16" ref="Request" /> <errorcopy name="Implementation" number="17" ref="Request" /> <!-- The core requests, in major number order. --> <!-- It is the caller's responsibility to free returned XCB*Rep objects. --> <enum name="WindowClass"> <item name="CopyFromParent"><value>0</value></item> <item name="InputOutput"> <value>1</value></item> <item name="InputOnly"> <value>2</value></item> </enum> <!-- Window attributes for CreateWindow and ChangeWindowAttributes. --> <enum name="CW"> <item name="BackPixmap"> <bit>0</bit></item> <item name="BackPixel"> <bit>1</bit></item> <item name="BorderPixmap"> <bit>2</bit></item> <item name="BorderPixel"> <bit>3</bit></item> <item name="BitGravity"> <bit>4</bit></item> <item name="WinGravity"> <bit>5</bit></item> <item name="BackingStore"> <bit>6</bit></item> <item name="BackingPlanes"> <bit>7</bit></item> <item name="BackingPixel"> <bit>8</bit></item> <item name="OverrideRedirect"><bit>9</bit></item> <item name="SaveUnder"> <bit>10</bit></item> <item name="EventMask"> <bit>11</bit></item> <item name="DontPropagate"> <bit>12</bit></item> <item name="Colormap"> <bit>13</bit></item> <item name="Cursor"> <bit>14</bit></item> <doc> <field name="BackPixmap"><![CDATA[ Overrides the default background-pixmap. The background pixmap and window must have the same root and same depth. Any size pixmap can be used, although some sizes may be faster than others. If `XCB_BACK_PIXMAP_NONE` is specified, the window has no defined background. The server may fill the contents with the previous screen contents or with contents of its own choosing. If `XCB_BACK_PIXMAP_PARENT_RELATIVE` is specified, the parent's background is used, but the window must have the same depth as the parent (or a Match error results). The parent's background is tracked, and the current version is used each time the window background is required. ]]></field> <field name="BackPixel"><![CDATA[ Overrides `BackPixmap`. A pixmap of undefined size filled with the specified background pixel is used for the background. Range-checking is not performed, the background pixel is truncated to the appropriate number of bits. ]]></field> <field name="BorderPixmap"><![CDATA[ Overrides the default border-pixmap. The border pixmap and window must have the same root and the same depth. Any size pixmap can be used, although some sizes may be faster than others. The special value `XCB_COPY_FROM_PARENT` means the parent's border pixmap is copied (subsequent changes to the parent's border attribute do not affect the child), but the window must have the same depth as the parent. ]]></field> <field name="BorderPixel"><![CDATA[ Overrides `BorderPixmap`. A pixmap of undefined size filled with the specified border pixel is used for the border. Range checking is not performed on the border-pixel value, it is truncated to the appropriate number of bits. ]]></field> <field name="BitGravity"><![CDATA[ Defines which region of the window should be retained if the window is resized. ]]></field> <field name="WinGravity"><![CDATA[ Defines how the window should be repositioned if the parent is resized (see `ConfigureWindow`). ]]></field> <field name="BackingStore"><![CDATA[ A backing-store of `WhenMapped` advises the server that maintaining contents of obscured regions when the window is mapped would be beneficial. A backing-store of `Always` advises the server that maintaining contents even when the window is unmapped would be beneficial. In this case, the server may generate an exposure event when the window is created. A value of `NotUseful` advises the server that maintaining contents is unnecessary, although a server may still choose to maintain contents while the window is mapped. Note that if the server maintains contents, then the server should maintain complete contents not just the region within the parent boundaries, even if the window is larger than its parent. While the server maintains contents, exposure events will not normally be generated, but the server may stop maintaining contents at any time. ]]></field> <field name="BackingPlanes"><![CDATA[ The backing-planes indicates (with bits set to 1) which bit planes of the window hold dynamic data that must be preserved in backing-stores and during save-unders. ]]></field> <field name="BackingPixel"><![CDATA[ The backing-pixel specifies what value to use in planes not covered by backing-planes. The server is free to save only the specified bit planes in the backing-store or save-under and regenerate the remaining planes with the specified pixel value. Any bits beyond the specified depth of the window in these values are simply ignored. ]]></field> <field name="OverrideRedirect"><![CDATA[ The override-redirect specifies whether map and configure requests on this window should override a SubstructureRedirect on the parent, typically to inform a window manager not to tamper with the window. ]]></field> <field name="SaveUnder"><![CDATA[ If 1, the server is advised that when this window is mapped, saving the contents of windows it obscures would be beneficial. ]]></field> <field name="EventMask"><![CDATA[ The event-mask defines which events the client is interested in for this window (or for some event types, inferiors of the window). ]]></field> <field name="DontPropagate"><![CDATA[ The do-not-propagate-mask defines which events should not be propagated to ancestor windows when no client has the event type selected in this window. ]]></field> <field name="Colormap"><![CDATA[ The colormap specifies the colormap that best reflects the true colors of the window. Servers capable of supporting multiple hardware colormaps may use this information, and window man- agers may use it for InstallColormap requests. The colormap must have the same visual type and root as the window (or a Match error results). If CopyFromParent is specified, the parent's colormap is copied (subsequent changes to the parent's colormap attribute do not affect the child). However, the window must have the same visual type as the parent (or a Match error results), and the parent must not have a colormap of None (or a Match error results). For an explanation of None, see FreeColormap request. The colormap is copied by sharing the colormap object between the child and the parent, not by making a complete copy of the colormap contents. ]]></field> <field name="Cursor"><![CDATA[ If a cursor is specified, it will be used whenever the pointer is in the window. If None is speci- fied, the parent's cursor will be used when the pointer is in the window, and any change in the parent's cursor will cause an immediate change in the displayed cursor. ]]></field> </doc> </enum> <enum name="BackPixmap"> <item name="None"> <value>0</value></item> <item name="ParentRelative"><value>1</value></item> </enum> <enum name="Gravity"> <item name="BitForget"><value>0</value></item> <item name="WinUnmap"> <value>0</value></item> <item name="NorthWest"><value>1</value></item> <item name="North"> <value>2</value></item> <item name="NorthEast"><value>3</value></item> <item name="West"> <value>4</value></item> <item name="Center"> <value>5</value></item> <item name="East"> <value>6</value></item> <item name="SouthWest"><value>7</value></item> <item name="South"> <value>8</value></item> <item name="SouthEast"><value>9</value></item> <item name="Static"> <value>10</value></item> </enum> <request name="CreateWindow" opcode="1"> <field type="CARD8" name="depth" /> <field type="WINDOW" name="wid" /> <field type="WINDOW" name="parent" /> <field type="INT16" name="x" /> <field type="INT16" name="y" /> <field type="CARD16" name="width" /> <field type="CARD16" name="height" /> <field type="CARD16" name="border_width" /> <field type="CARD16" name="class" enum="WindowClass" /> <field type="VISUALID" name="visual" /> <valueparam value-mask-type="CARD32" value-mask-name="value_mask" value-list-name="CW" /> <doc> <brief>Creates a window</brief> <description><![CDATA[ Creates an unmapped window as child of the specified `parent` window. A CreateNotify event will be generated. The new window is placed on top in the stacking order with respect to siblings. The coordinate system has the X axis horizontal and the Y axis vertical with the origin [0, 0] at the upper-left corner. Coordinates are integral, in terms of pixels, and coincide with pixel centers. Each window and pixmap has its own coordinate system. For a window, the origin is inside the border at the inside, upper-left corner. The created window is not yet displayed (mapped), call `xcb_map_window` to display it. The created window will initially use the same cursor as its parent. ]]></description> <field name="wid"><![CDATA[ The ID with which you will refer to the new window, created by `xcb_generate_id`. ]]></field> <field name="depth"><![CDATA[ Specifies the new window's depth (TODO: what unit?). The special value `XCB_COPY_FROM_PARENT` means the depth is taken from the `parent` window. ]]></field> <field name="visual"><![CDATA[ Specifies the id for the new window's visual. The special value `XCB_COPY_FROM_PARENT` means the visual is taken from the `parent` window. ]]></field> <field name="class"></field> <field name="parent"><![CDATA[ The parent window of the new window. ]]></field> <field name="border_width"><![CDATA[ TODO: Must be zero if the `class` is `InputOnly` or a `xcb_match_error_t` occurs. ]]></field> <field name="x"><![CDATA[The X coordinate of the new window.]]></field> <field name="y"><![CDATA[The Y coordinate of the new window.]]></field> <field name="width"><![CDATA[The width of the new window.]]></field> <field name="height"><![CDATA[The height of the new window.]]></field> <error type="Colormap"><![CDATA[ TODO: reasons? ]]></error> <error type="Match"><![CDATA[ TODO: reasons? ]]></error> <error type="Cursor"><![CDATA[ TODO: reasons? ]]></error> <error type="Pixmap"><![CDATA[ TODO: reasons? ]]></error> <error type="Value"><![CDATA[ TODO: reasons? ]]></error> <error type="