X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxproto.xml;h=bfb8a4cff4c2227dfe265b73928de1138dbbcb33;hb=ee68a1c771e7caa9897f8ec5e5cdbec07ec59450;hp=d0c3b1faaa6291f5973fc3d506310d3d538df3ca;hpb=ab4393d3a63dde6fca2a167f7d6aaf64972b02f0;p=free-sw%2Fxcb%2Fproto diff --git a/src/xproto.xml b/src/xproto.xml index d0c3b1f..bfb8a4c 100644 --- a/src/xproto.xml +++ b/src/xproto.xml @@ -47,35 +47,25 @@ authorization from the authors. - - - - + + WINDOW + PIXMAP + - - - - + + FONT + GCONTEXT + - - - + - - - + - - - + - - - + - - - + @@ -118,7 +108,7 @@ authorization from the authors. - + @@ -137,12 +127,47 @@ authorization from the authors. + + 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 + + - + @@ -150,7 +175,7 @@ authorization from the authors. - + @@ -159,13 +184,14 @@ authorization from the authors. - + + authorization_protocol_name_len @@ -216,8 +242,8 @@ authorization from the authors. - - + + @@ -245,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 @@ -252,13 +299,52 @@ authorization from the authors. - + - + + + + a key was pressed/released + + + + + + + + + + + + @@ -277,13 +363,52 @@ authorization from the authors. - + - + + + + a mouse button was pressed/released + + + + + + + + + + + + @@ -295,17 +420,56 @@ authorization from the authors. - + - + - + + + + a key was pressed + + + + + + + + + + + + @@ -327,26 +491,65 @@ authorization from the authors. - + - + - - + + + + the pointer is in a different window + + + + + + + + + - + - + + + + NOT YET DOCUMENTED + + + + + @@ -363,6 +566,33 @@ authorization from the authors. + + + NOT YET DOCUMENTED + + + + + + + @@ -375,6 +605,7 @@ authorization from the authors. + @@ -382,6 +613,7 @@ authorization from the authors. + @@ -393,7 +625,8 @@ authorization from the authors. - + + @@ -406,12 +639,24 @@ authorization from the authors. + + + a window is destroyed + + + + @@ -419,6 +664,22 @@ authorization from the authors. + + + a window is unmapped + + + + + @@ -426,12 +687,37 @@ authorization from the authors. + + + a window was mapped + + + + + + + window wants to be mapped + + + + @@ -442,32 +728,70 @@ authorization from the authors. + - + + + + NOT YET DOCUMENTED + + + + + + + + + + + - + - + - + @@ -488,6 +812,14 @@ authorization from the authors. 0 1 + + + + @@ -495,7 +827,21 @@ authorization from the authors. - + + + + NOT YET DOCUMENTED + + + + + + @@ -510,7 +856,23 @@ authorization from the authors. - + + + + a window property changed + + + + + + + @@ -520,36 +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 + + + + + + + @@ -565,6 +1033,26 @@ authorization from the authors. + + NOT YET DOCUMENTED + + + + + + @@ -575,12 +1063,38 @@ authorization from the authors. - + + + + keyboard mapping changed + + + + + - + + + + generic event (with length) + + + + + @@ -590,12 +1104,14 @@ authorization from the authors. + + @@ -644,6 +1160,106 @@ authorization from the authors. 12 13 14 + + + + + + + + + + + + + + + + + @@ -666,42 +1282,6 @@ authorization from the authors. 10 - - - 0 - 1 - 2 - - - - 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 - - @@ -711,11 +1291,84 @@ authorization from the authors. - + + + Creates a window + + + + + + + + + + + + + + + + + + + + + + + @@ -724,6 +1377,43 @@ authorization from the authors. + + change window attributes + + + + + + + + + + + + + @@ -736,27 +1426,95 @@ authorization from the authors. - + - - - + + + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + Gets window attributes + + + + + + + + Destroys a window + + + + + + + @@ -770,8 +1528,30 @@ authorization from the authors. - + + + Changes a client's save set + + + + + + + + @@ -780,11 +1560,78 @@ authorization from the authors. + + Reparents a window + + + + + + + + + + + + + Makes a window visible + + + + + + + @@ -795,6 +1642,25 @@ authorization from the authors. + + Makes a window invisible + + + + + + + @@ -823,9 +1689,60 @@ authorization from the authors. + + + + Configures window attributes + + + + + + + + + + + @@ -834,8 +1751,29 @@ authorization from the authors. - + + + Change window stacking order + + + + + + + @@ -849,7 +1787,68 @@ authorization from the authors. + + + + + + + + + + + + Get current window geometry + + x, reply->y); + } + free(reply); +} + ]]> + + + + + @@ -858,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); + } +} + ]]> + + + @@ -876,8 +1919,55 @@ authorization from the authors. - + + + Get atom identifier by name + + atom); + free(reply); + } +} + ]]> + + + + + + + + + @@ -887,7 +1977,7 @@ authorization from the authors. - + name_len @@ -897,10 +1987,25 @@ authorization from the authors. 0 1 2 + + + + + - + @@ -916,6 +2021,71 @@ authorization from the authors. 8 + + Changes a window property + + + + + + + + + + + + + + + + + + @@ -932,7 +2102,7 @@ authorization from the authors. - + @@ -942,9 +2112,110 @@ authorization from the authors. - value_len + + value_len + + format + 8 + + + + + + + + + + Gets a window property + + + + + + + + + + + + + + @@ -962,9 +2233,41 @@ authorization from the authors. - + - + + + Sets the owner of a selection + + + + + + + + @@ -972,8 +2275,28 @@ authorization from the authors. - + + + + + + Gets the owner of a selection + + + + + @@ -981,8 +2304,8 @@ authorization from the authors. - - + + @@ -992,14 +2315,100 @@ authorization from the authors. - - + + 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 + + + + @@ -1010,75 +2419,358 @@ authorization from the authors. 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); + } +} + ]]> + + + + + + + + + + - + @@ -1089,16 +2781,119 @@ authorization from the authors. - - - - + + + + + + + Grab keyboard key(s) + + + + + + + + + + + + + + - + - + + + + release a key combination + + + + + + + + + @@ -1110,11 +2905,106 @@ authorization from the authors. 5 6 7 + + + + + + + + + + - - + + + + release queued events + + + + + + @@ -1127,13 +3017,63 @@ authorization from the authors. - + - + + + + + + + + + + + + + + get pointer coordinates + + + + @@ -1145,8 +3085,8 @@ authorization from the authors. - - + + @@ -1165,22 +3105,54 @@ authorization from the authors. - - - + + + - - + + + + move mouse pointer + + + + + + @@ -1188,18 +3160,78 @@ authorization from the authors. 0 1 2 + 3 + + + + + + - - - + + + + + Sets input focus + + + + + + + + + + + - - + + @@ -1214,9 +3246,32 @@ authorization from the authors. + name_len + + opens a font + + + + + + + @@ -1256,7 +3311,7 @@ authorization from the authors. - + @@ -1269,7 +3324,48 @@ authorization from the authors. char_infos_len + + + + + + + + + + + + + + + query font metrics + + + + @@ -1279,7 +3375,7 @@ authorization from the authors. - + @@ -1288,6 +3384,47 @@ authorization from the authors. + + get text extents + + + + + + + @@ -1311,7 +3448,31 @@ authorization from the authors. names_len + + + + + get matching font names + + + + + @@ -1331,7 +3492,7 @@ authorization from the authors. - + @@ -1344,13 +3505,75 @@ authorization from the authors. name_len + + + + + + + + + + + + + + + + + get matching font names and information + + + + + + - + + + font_qty + @@ -1370,11 +3593,55 @@ authorization from the authors. + + Creates a pixmap + + + + + + + + + + + + + Destroys a pixmap + + + + @@ -1401,26 +3668,174 @@ authorization from the authors. 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 @@ -1431,13 +3846,13 @@ authorization from the authors. 0 - 1 - 2 + 1 + 2 3 - 0 + 0 1 2 @@ -1471,6 +3886,39 @@ authorization from the authors. + + Creates a graphics context + + + + + + + + + + + @@ -1479,13 +3927,69 @@ authorization from the authors. + + change graphics context components + + + + + + + + + + + + + - + @@ -1506,7 +4010,7 @@ authorization from the authors. - + @@ -1516,6 +4020,16 @@ authorization from the authors. + + Destroys a graphics context + + + + @@ -1538,6 +4052,48 @@ authorization from the authors. + + copy areas + + + + + + + + + + + + + + @@ -1557,20 +4113,79 @@ authorization from the authors. 0 1 + + + + - - + + + - + + + draw lines + + + + + + + + + + + + + @@ -1585,6 +4200,43 @@ authorization from the authors. + + draw lines + + + + + + + + + @@ -1616,8 +4268,9 @@ authorization from the authors. - - + + + @@ -1626,6 +4279,42 @@ authorization from the authors. + + Fills rectangles + + + + + + + + + @@ -1642,7 +4331,7 @@ authorization from the authors. - + @@ -1651,12 +4340,13 @@ authorization from the authors. + - + @@ -1703,6 +4393,52 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + @@ -1714,6 +4450,53 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + @@ -1722,7 +4505,7 @@ authorization from the authors. - + @@ -1768,6 +4551,7 @@ authorization from the authors. + @@ -1776,12 +4560,38 @@ authorization from the authors. + + Allocate a color + + + + + + + + name_len @@ -1855,7 +4665,7 @@ authorization from the authors. - + @@ -1866,10 +4676,11 @@ authorization from the authors. - + + name_len @@ -1900,6 +4711,7 @@ authorization from the authors. + name_len @@ -1914,11 +4726,15 @@ authorization from the authors. + + 0 + + - + @@ -1929,11 +4745,15 @@ authorization from the authors. + + 0 + + - + @@ -1942,11 +4762,82 @@ authorization from the authors. + + create cursor + + + + + + + + + + + + + + + + + + + Deletes a cursor + + + + + @@ -1967,7 +4858,7 @@ authorization from the authors. - + @@ -1981,6 +4872,7 @@ authorization from the authors. + name_len @@ -1990,7 +4882,44 @@ authorization from the authors. + + + + + + + + check if extension is present + + + + + + @@ -2007,6 +4936,7 @@ authorization from the authors. + keycode_count @@ -2023,10 +4953,7 @@ authorization from the authors. - - length - 4 - + length @@ -2062,7 +4989,7 @@ authorization from the authors. - + @@ -2092,6 +5019,7 @@ authorization from the authors. + @@ -2114,8 +5042,8 @@ authorization from the authors. - - + + @@ -2123,12 +5051,13 @@ authorization from the authors. - - + + + - + 0 1 @@ -2143,17 +5072,17 @@ authorization from the authors. - - + + - + address_len - + @@ -2163,7 +5092,7 @@ authorization from the authors. - + @@ -2178,7 +5107,7 @@ authorization from the authors. - + @@ -2188,7 +5117,7 @@ authorization from the authors. - + @@ -2197,10 +5126,29 @@ authorization from the authors. - + + + kills a client + + + + + + + @@ -2215,7 +5163,7 @@ authorization from the authors. - + @@ -2231,7 +5179,7 @@ authorization from the authors. map_len - + @@ -2265,7 +5213,7 @@ authorization from the authors. - +