X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxproto.xml;h=bfb8a4cff4c2227dfe265b73928de1138dbbcb33;hb=ee68a1c771e7caa9897f8ec5e5cdbec07ec59450;hp=e0137dd7171166b524dc38dbc3a86eaf8f5d5c6e;hpb=db7df9aa326d199d51eb8a2489a95aaa9a3a8606;p=free-sw%2Fxcb%2Fproto diff --git a/src/xproto.xml b/src/xproto.xml index e0137dd..bfb8a4c 100644 --- a/src/xproto.xml +++ b/src/xproto.xml @@ -26,75 +26,530 @@ 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 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 15 + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + + 0 + - + - + + + + a key was pressed/released + + + + + + + + + + + + + + 8 + 9 + 10 + 11 + 12 + 15 + + - + - + + + + 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 + + + + + @@ -111,6 +566,33 @@ authorization from the authors. + + + NOT YET DOCUMENTED + + + + + + + @@ -123,6 +605,7 @@ authorization from the authors. + @@ -130,12 +613,20 @@ authorization from the authors. + + + 0 + 1 + 2 + + - + + @@ -148,12 +639,24 @@ authorization from the authors. + + + a window is destroyed + + + + @@ -161,6 +664,22 @@ authorization from the authors. + + + a window is unmapped + + + + + @@ -168,12 +687,37 @@ authorization from the authors. + + + a window was mapped + + + + + + + window wants to be mapped + + + + @@ -184,32 +728,70 @@ authorization from the authors. + - + + + + NOT YET DOCUMENTED + + + + + + + + + + + - + - + - + @@ -227,22 +809,70 @@ authorization from the authors. + + 0 + 1 + + + + + + - + + + + NOT YET DOCUMENTED + + + + + + + + 0 + 1 + + - + + + + a window property changed + + + + + + + @@ -252,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 + + + + + + + @@ -292,25 +1033,85 @@ authorization from the authors. + + NOT YET DOCUMENTED + + + + + + + + 0 + 1 + 2 + + - + + + + keyboard mapping changed + + + + + + + + + generic event (with length) + + + + + + + + + + + + @@ -329,28 +1130,156 @@ authorization from the authors. - + + + - + + + + 0 + 1 + 2 + - - - - - - - - - - - - - - - + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + + + + + + + + + + + + + + + + + + + 0 + 1 + + + + 0 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 @@ -362,11 +1291,84 @@ authorization from the authors. - + + + Creates a window + + + + + + + + + + + + + + + + + + + + + + + @@ -375,43 +1377,181 @@ authorization from the authors. + + change window attributes + + + + + + + + + + + + + + + + 0 + 1 + 2 + - + - - - + + + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + Gets window attributes + + + + + + + + Destroys a window + + + + + + + + + + 0 + 1 + - + + + Changes a client's save set + + + + + + + + @@ -420,11 +1560,78 @@ authorization from the authors. + + Reparents a window + + + + + + + + + + + + + Makes a window visible + + + + + + + @@ -435,24 +1642,138 @@ authorization from the authors. + + Makes a window invisible + + + + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + + + + 0 + 1 + 2 + 3 + 4 + + + + + Configures window attributes + + + + + + + + + + + + + 0 + 1 + + - + + + Change window stacking order + + + + + + + @@ -466,7 +1787,68 @@ authorization from the authors. + + + + + + + + + + + + Get current window geometry + + x, reply->y); + } + free(reply); +} + ]]> + + + + + @@ -475,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); + } +} + ]]> + + + @@ -493,8 +1919,55 @@ authorization from the authors. - + + + Get atom identifier by name + + atom); + free(reply); + } +} + ]]> + + + + + + + + + @@ -504,14 +1977,35 @@ authorization from the authors. - + name_len + + + 0 + 1 + 2 + + + + + + - + @@ -527,6 +2021,71 @@ authorization from the authors. 8 + + Changes a window property + + + + + + + + + + + + + + + + + + @@ -534,12 +2093,16 @@ authorization from the authors. + + + 0 + - + @@ -549,9 +2112,110 @@ authorization from the authors. - value_len + + value_len + + format + 8 + + + + + + + + + + Gets a window property + + + + + + + + + + + + + + @@ -569,9 +2233,41 @@ authorization from the authors. - + - + + + Sets the owner of a selection + + + + + + + + @@ -579,8 +2275,28 @@ authorization from the authors. - + + + + + + Gets the owner of a selection + + + + + @@ -588,97 +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 + + + + + + @@ -691,13 +3017,63 @@ authorization from the authors. - + - + + + + + + + + + + + + + + get pointer coordinates + + + + @@ -709,8 +3085,8 @@ authorization from the authors. - - + + @@ -729,34 +3105,133 @@ authorization from the authors. - - - + + + - - + + + + move mouse pointer + + + + + + + + + 0 + 1 + 2 + 3 + + + + + + + + - - - + + + + + Sets input focus + + + + + + + + + + + - - + + @@ -771,9 +3246,32 @@ authorization from the authors. + name_len + + opens a font + + + + + + + @@ -781,6 +3279,11 @@ authorization from the authors. + + 0 + 1 + + @@ -808,7 +3311,7 @@ authorization from the authors. - + @@ -821,7 +3324,48 @@ authorization from the authors. char_infos_len + + + + + + + + + + + + + + + query font metrics + + + + @@ -831,7 +3375,7 @@ authorization from the authors. - + @@ -840,6 +3384,47 @@ authorization from the authors. + + get text extents + + + + + + + @@ -863,7 +3448,31 @@ authorization from the authors. names_len + + + + + get matching font names + + + + + @@ -883,7 +3492,7 @@ authorization from the authors. - + @@ -896,13 +3505,75 @@ authorization from the authors. name_len + + + + + + + + + + + + + + + + + get matching font names and information + + + + + + - + + + font_qty + @@ -922,12 +3593,291 @@ authorization from the authors. + + Creates a pixmap + + + + + + + + + + + + + Destroys a pixmap + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + + + + 0 + 1 + 2 + + + + 0 + 1 + 2 + 3 + + + + 0 + 1 + 2 + + + + 0 + 1 + 2 + 3 + + + + 0 + 1 + + + + 0 + 1 + + + + 0 + 1 + @@ -936,6 +3886,39 @@ authorization from the authors. + + Creates a graphics context + + + + + + + + + + + @@ -944,13 +3927,69 @@ authorization from the authors. + + change graphics context components + + + + + + + + + + + + + - + @@ -963,8 +4002,15 @@ authorization from the authors. + + 0 + 1 + 2 + 3 + + - + @@ -974,6 +4020,16 @@ authorization from the authors. + + Destroys a graphics context + + + + @@ -996,6 +4052,48 @@ authorization from the authors. + + copy areas + + + + + + + + + + + + + + @@ -1011,19 +4109,83 @@ authorization from the authors. + + + 0 + 1 + + + + + - - + + + - + + + draw lines + + + + + + + + + + + + + @@ -1038,6 +4200,43 @@ authorization from the authors. + + draw lines + + + + + + + + + @@ -1059,12 +4258,19 @@ authorization from the authors. + + 0 + 1 + 2 + + - - + + + @@ -1073,6 +4279,42 @@ authorization from the authors. + + Fills rectangles + + + + + + + + + @@ -1081,9 +4323,15 @@ authorization from the authors. + + + 0 + 1 + 2 + - + @@ -1092,12 +4340,13 @@ authorization from the authors. + - + @@ -1144,6 +4393,52 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + @@ -1155,10 +4450,62 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + + + 0 + 1 + + - + @@ -1204,6 +4551,7 @@ authorization from the authors. + @@ -1212,12 +4560,38 @@ authorization from the authors. + + Allocate a color + + + + + + + + name_len @@ -1280,12 +4654,18 @@ authorization from the authors. + + 0 + 1 + 2 + + - + @@ -1296,10 +4676,11 @@ authorization from the authors. - + + name_len @@ -1330,6 +4711,7 @@ authorization from the authors. + name_len @@ -1344,11 +4726,15 @@ authorization from the authors. + + 0 + + - + @@ -1359,11 +4745,15 @@ authorization from the authors. + + 0 + + - + @@ -1372,11 +4762,82 @@ authorization from the authors. + + create cursor + + + + + + + + + + + + + + + + + + + Deletes a cursor + + + + + @@ -1390,8 +4851,14 @@ authorization from the authors. + + 0 + 1 + 2 + + - + @@ -1405,6 +4872,7 @@ authorization from the authors. + name_len @@ -1414,7 +4882,44 @@ authorization from the authors. + + + + + + + + check if extension is present + + + + + + @@ -1431,6 +4936,7 @@ authorization from the authors. + keycode_count @@ -1447,14 +4953,33 @@ authorization from the authors. - - length - 4 - + length + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + + + + 0 + 1 + + + + 0 + 1 + 2 + + - + @@ -1494,15 +5019,31 @@ authorization from the authors. + + + + + 0 + 1 + 2 + + + + 0 + 1 + 2 + + - - + + @@ -1510,23 +5051,38 @@ authorization from the authors. - - + + + + + 0 + 1 + + + + + 0 + 1 + 2 + 5 + 6 + + - - + + - + address_len - + @@ -1536,7 +5092,7 @@ authorization from the authors. - + @@ -1545,20 +5101,54 @@ authorization from the authors. + + 0 + 1 + + - + + + 0 + 1 + 2 + + - + + + 0 + + - + + + kills a client + + + + + + + @@ -1567,17 +5157,29 @@ authorization from the authors. + + 0 + 1 + + - + + + + 0 + 1 + 2 + + map_len - + @@ -1590,6 +5192,17 @@ authorization from the authors. + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + @@ -1600,7 +5213,7 @@ authorization from the authors. - +