X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxproto.xml;h=bfb8a4cff4c2227dfe265b73928de1138dbbcb33;hb=ee68a1c771e7caa9897f8ec5e5cdbec07ec59450;hp=6aba1705e5396655776a713434dad895b74977b9;hpb=c6bc27ff1409591af79efd9806451386317bded4;p=free-sw%2Fxcb%2Fproto diff --git a/src/xproto.xml b/src/xproto.xml index 6aba170..bfb8a4c 100644 --- a/src/xproto.xml +++ b/src/xproto.xml @@ -26,7 +26,241 @@ sale, use or other dealings in this Software without prior written authorization from the authors. --> - + + + + + + + + + + + + + + + + + + + + + + + WINDOW + PIXMAP + + + + FONT + GCONTEXT + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + + + + + + + + + + + + + + + + + + + + visuals_len + + + + + 0 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + + + + 0 + 1 + 2 + + + + + + + + + + + + + + + + + + + + + allowed_depths_len + + + + + + + + + + + + + authorization_protocol_name_len + + + authorization_protocol_data_len + + + + + + + + + + + reason_len + + + + + + + + + + length + 4 + + + + + + 0 + 1 + + + + + + + + + + + + + + + + + + + + + + + + + vendor_len + + + pixmap_formats_len + + + roots_len + + + + 0 @@ -37,6 +271,27 @@ authorization from the authors. 5 6 7 + 15 + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + + 0 @@ -44,13 +299,52 @@ authorization from the authors. - + - + + + + a key was pressed/released + + + + + + + + + + + + @@ -69,52 +363,193 @@ authorization from the authors. - + - + + + + a mouse button was pressed/released + + + + + + + + + + + + + + + 0 + 1 + + - + - + - + + + + a key was pressed + + + + + + + + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + + + + 0 + 1 + 2 + 3 + + - + - + - - + + + + the pointer is in a different window + + + + + + + + + - + - + + + + NOT YET DOCUMENTED + + + + + @@ -131,6 +566,33 @@ authorization from the authors. + + + NOT YET DOCUMENTED + + + + + + + @@ -143,6 +605,7 @@ authorization from the authors. + @@ -150,12 +613,20 @@ authorization from the authors. + + + 0 + 1 + 2 + + - + + @@ -168,12 +639,24 @@ authorization from the authors. + + + a window is destroyed + + + + @@ -181,6 +664,22 @@ authorization from the authors. + + + a window is unmapped + + + + + @@ -188,12 +687,37 @@ authorization from the authors. + + + a window was mapped + + + + + + + window wants to be mapped + + + + @@ -204,32 +728,70 @@ authorization from the authors. + - + + + + NOT YET DOCUMENTED + + + + + + + + + + + - + - + - + @@ -247,12 +809,39 @@ authorization from the authors. + + 0 + 1 + + + + + + - + + + + NOT YET DOCUMENTED + + + + + + @@ -267,7 +856,23 @@ authorization from the authors. - + + + + a window property changed + + + + + + + @@ -277,31 +882,142 @@ authorization from the authors. + + 0 + + + + 0 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + 28 + 29 + 30 + 31 + 32 + 33 + 34 + 35 + 36 + 37 + 38 + 39 + 40 + 41 + 42 + 43 + 44 + 45 + 46 + 47 + 48 + 49 + 50 + 51 + 52 + 53 + 54 + 55 + 56 + 57 + 58 + 59 + 60 + 61 + 62 + 63 + 64 + 65 + 66 + 67 + 68 + + - + - + - + - + + + 0 + 1 + + + + + + + + 0 + + - + - + + + + the colormap for some window changed + + + + + + + @@ -317,6 +1033,26 @@ authorization from the authors. + + NOT YET DOCUMENTED + + + + + + @@ -327,21 +1063,55 @@ authorization from the authors. - + + + + keyboard mapping changed + + + + + + + + + generic event (with length) + + + + + + + + + + + + @@ -360,9 +1130,13 @@ authorization from the authors. - + + + + + 0 1 @@ -386,41 +1160,126 @@ authorization from the authors. 12 13 14 + + + + + + + + + + + + + + + + + - - 0 - 1 - 2 + + 0 + 1 - - 0 - 0 - 1 - 2 - 3 - 4 - 5 - 6 - 7 - 8 - 9 - 10 - 11 - 12 - 13 - 14 - 15 - 16 - 17 - 18 - 19 - 20 - 21 - 22 - 23 - 24 + + 0 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 @@ -432,11 +1291,84 @@ authorization from the authors. - + + + Creates a window + + + + + + + + + + + + + + + + + + + + + + + @@ -445,6 +1377,43 @@ authorization from the authors. + + change window attributes + + + + + + + + + + + + + @@ -457,27 +1426,95 @@ authorization from the authors. - + - - - + + + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + Gets window attributes + + + + + + + + Destroys a window + + + + + + + @@ -491,8 +1528,30 @@ authorization from the authors. - + + + Changes a client's save set + + + + + + + + @@ -501,11 +1560,78 @@ authorization from the authors. + + Reparents a window + + + + + + + + + + + + + Makes a window visible + + + + + + + @@ -516,6 +1642,25 @@ authorization from the authors. + + Makes a window invisible + + + + + + + @@ -532,18 +1677,103 @@ authorization from the authors. 5 6 + + + 0 + 1 + 2 + 3 + 4 + + + + + Configures window attributes + + + + + + + + + + + + + 0 + 1 + + - + + + Change window stacking order + + + + + + + @@ -557,7 +1787,68 @@ authorization from the authors. + + + + + + + + + + + + Get current window geometry + + x, reply->y); + } + free(reply); +} + ]]> + + + + + @@ -566,13 +1857,57 @@ authorization from the authors. - + children_len + + + + + + + query the window tree + + root); + printf("parent = 0x%08x\\n", reply->parent); + + xcb_window_t *children = xcb_query_tree_children(reply); + for (int i = 0; i < xcb_query_tree_children_length(reply); i++) + printf("child window = 0x%08x\\n", children[i]); + + free(reply); + } +} + ]]> + + + @@ -584,8 +1919,55 @@ authorization from the authors. - + + + Get atom identifier by name + + atom); + free(reply); + } +} + ]]> + + + + + + + + + @@ -595,7 +1977,7 @@ authorization from the authors. - + name_len @@ -605,10 +1987,25 @@ authorization from the authors. 0 1 2 + + + + + - + @@ -624,6 +2021,71 @@ authorization from the authors. 8 + + Changes a window property + + + + + + + + + + + + + + + + + + @@ -640,7 +2102,7 @@ authorization from the authors. - + @@ -650,9 +2112,110 @@ authorization from the authors. - value_len + + value_len + + format + 8 + + + + + + + + + + Gets a window property + + + + + + + + + + + + + + @@ -670,9 +2233,41 @@ authorization from the authors. - + - + + + Sets the owner of a selection + + + + + + + + @@ -680,8 +2275,28 @@ authorization from the authors. - + + + + + + Gets the owner of a selection + + + + + @@ -689,106 +2304,707 @@ authorization from the authors. - - + + + + 0 + 1 + + - - + + 32 + + send an event + + event = window; + event->window = window; + event->response_type = XCB_CONFIGURE_NOTIFY; + + event->x = 0; + event->y = 0; + event->width = 800; + event->height = 600; + + event->border_width = 0; + event->above_sibling = XCB_NONE; + event->override_redirect = false; + + xcb_send_event(conn, false, window, XCB_EVENT_MASK_STRUCTURE_NOTIFY, + (char*)event); + xcb_flush(conn); + free(event); +} + ]]> + + + + + + + + + + 0 + 1 + + + + + + + + 0 + 1 + 2 + 3 + 4 + + + + 0 + + - - - - - - + + + + + + - + + + Grab the pointer + + root, /* grab the root window */ + XCB_NONE, /* which events to let through */ + XCB_GRAB_MODE_ASYNC, /* pointer events should continue as normal */ + XCB_GRAB_MODE_ASYNC, /* keyboard mode */ + XCB_NONE, /* confine_to = in which window should the cursor stay */ + cursor, /* we change the cursor to whatever the user wanted */ + XCB_CURRENT_TIME + ); + + if ((reply = xcb_grab_pointer_reply(conn, cookie, NULL))) { + if (reply->status == XCB_GRAB_STATUS_SUCCESS) + printf("successfully grabbed the pointer\\n"); + free(preply); + } +} + ]]> + + + + + + + + + + + + + + - + + + release the pointer + + + + + + + + + - + 0 1 2 3 4 5 + + + + + + + + - - - - - - + + + + + + - + + + Grab pointer button(s) + + + + + + + + + + + + + + + + - + - + - - - + + + + - - - + + + + - + + + Grab the keyboard + + root, /* grab the root window */ + XCB_CURRENT_TIME, + XCB_GRAB_MODE_ASYNC, /* process events as normal, do not require sync */ + XCB_GRAB_MODE_ASYNC + ); + + if ((reply = xcb_grab_keyboard_reply(conn, cookie, NULL))) { + if (reply->status == XCB_GRAB_STATUS_SUCCESS) + printf("successfully grabbed the keyboard\\n"); + + free(reply); + } +} + ]]> + + + + + + + + + + - + + + + 0 + + - - - - + + + + + + + Grab keyboard key(s) + + + + + + + + + + + + + + - + - + + + + release a key combination + + + + + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + + + + + + + + + + + + - - + + + + release queued events + + + + + + @@ -801,13 +3017,63 @@ authorization from the authors. - + - + + + + + + + + + + + + + + get pointer coordinates + + + + @@ -819,8 +3085,8 @@ authorization from the authors. - - + + @@ -839,34 +3105,133 @@ authorization from the authors. - - - + + + - - + + + + move mouse pointer + + + + + + + + + 0 + 1 + 2 + 3 + + + + + + + + - - - + + + + + Sets input focus + + + + + + + + + + + - - + + @@ -881,9 +3246,32 @@ authorization from the authors. + name_len + + opens a font + + + + + + + @@ -891,6 +3279,11 @@ authorization from the authors. + + 0 + 1 + + @@ -918,7 +3311,7 @@ authorization from the authors. - + @@ -931,7 +3324,48 @@ authorization from the authors. char_infos_len + + + + + + + + + + + + + + + query font metrics + + + + @@ -941,7 +3375,7 @@ authorization from the authors. - + @@ -950,6 +3384,47 @@ authorization from the authors. + + get text extents + + + + + + + @@ -973,7 +3448,31 @@ authorization from the authors. names_len + + + + + get matching font names + + + + + @@ -993,7 +3492,7 @@ authorization from the authors. - + @@ -1006,13 +3505,75 @@ authorization from the authors. name_len + + + + + + + + + + + + + + + + + get matching font names and information + + + + + + - + + + font_qty + @@ -1032,11 +3593,55 @@ authorization from the authors. + + Creates a pixmap + + + + + + + + + + + + + Destroys a pixmap + + + + @@ -1059,30 +3664,178 @@ authorization from the authors. 16 17 18 - 19 + 19 20 21 22 + + + + + + + + + + + + + + + + + + + + + + + + + + - 0x0 - 0x1 - 0x2 - 0x3 - 0x4 - 0x5 - 0x6 - 0x7 - 0x8 - 0x9 - 0xa - 0xb - 0xc - 0xd - 0xe - 0xf + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 @@ -1093,13 +3846,13 @@ authorization from the authors. 0 - 1 - 2 + 1 + 2 3 - 0 + 0 1 2 @@ -1133,6 +3886,39 @@ authorization from the authors. + + Creates a graphics context + + + + + + + + + + + @@ -1141,13 +3927,69 @@ authorization from the authors. + + change graphics context components + + + + + + + + + + + + + - + @@ -1160,8 +4002,15 @@ authorization from the authors. + + 0 + 1 + 2 + 3 + + - + @@ -1171,6 +4020,16 @@ authorization from the authors. + + Destroys a graphics context + + + + @@ -1193,6 +4052,48 @@ authorization from the authors. + + copy areas + + + + + + + + + + + + + + @@ -1212,20 +4113,79 @@ authorization from the authors. 0 1 + + + + - - + + + - + + + draw lines + + + + + + + + + + + + + @@ -1240,6 +4200,43 @@ authorization from the authors. + + draw lines + + + + + + + + + @@ -1261,12 +4258,19 @@ authorization from the authors. + + 0 + 1 + 2 + + - - + + + @@ -1275,6 +4279,42 @@ authorization from the authors. + + Fills rectangles + + + + + + + + + @@ -1290,13 +4330,8 @@ authorization from the authors. 2 - - 0 - 1 - - - + @@ -1305,12 +4340,13 @@ authorization from the authors. + - + @@ -1357,6 +4393,52 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + @@ -1368,10 +4450,62 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + + + 0 + 1 + + - + @@ -1417,6 +4551,7 @@ authorization from the authors. + @@ -1425,12 +4560,38 @@ authorization from the authors. + + Allocate a color + + + + + + + + name_len @@ -1493,12 +4654,18 @@ authorization from the authors. + + 0 + 1 + 2 + + - + @@ -1509,10 +4676,11 @@ authorization from the authors. - + + name_len @@ -1543,6 +4711,7 @@ authorization from the authors. + name_len @@ -1557,11 +4726,15 @@ authorization from the authors. + + 0 + + - + @@ -1572,11 +4745,15 @@ authorization from the authors. + + 0 + + - + @@ -1585,11 +4762,82 @@ authorization from the authors. + + create cursor + + + + + + + + + + + + + + + + + + + Deletes a cursor + + + + + @@ -1603,8 +4851,14 @@ authorization from the authors. + + 0 + 1 + 2 + + - + @@ -1618,6 +4872,7 @@ authorization from the authors. + name_len @@ -1627,7 +4882,44 @@ authorization from the authors. + + + + + + + + check if extension is present + + + + + + @@ -1644,6 +4936,7 @@ authorization from the authors. + keycode_count @@ -1660,14 +4953,33 @@ authorization from the authors. - - length - 4 - + length + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + + + + 0 + 1 + + + + 0 + 1 + 2 + + - + @@ -1707,15 +5019,31 @@ authorization from the authors. + + + + + 0 + 1 + 2 + + + + 0 + 1 + 2 + + - - + + @@ -1723,23 +5051,38 @@ authorization from the authors. - - + + + + + 0 + 1 + + + + + 0 + 1 + 2 + 5 + 6 + + - - + + - + address_len - + @@ -1749,7 +5092,7 @@ authorization from the authors. - + @@ -1758,20 +5101,54 @@ authorization from the authors. + + 0 + 1 + + - + + + 0 + 1 + 2 + + - + + + 0 + + - + + + kills a client + + + + + + + @@ -1780,17 +5157,29 @@ authorization from the authors. + + 0 + 1 + + - + + + + 0 + 1 + 2 + + map_len - + @@ -1824,7 +5213,7 @@ authorization from the authors. - +