X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxproto.xml;h=bf4dcbf0f2480df7fc3d574d604376c489d5590e;hb=b02b7f8dcf92f2b0e7c1edc91f48d2e388d4b8c3;hp=e4e1bf6a0feb41bfb1f10cf772cf68a921024b39;hpb=6d0f08eefe7dd4e7eb7214807c8b8e2e8aa899d7;p=free-sw%2Fxcb%2Fproto diff --git a/src/xproto.xml b/src/xproto.xml index e4e1bf6..bf4dcbf 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,12 +809,39 @@ authorization from the authors. + + 0 + 1 + + + + + + - + + + + NOT YET DOCUMENTED + + + + + + @@ -247,7 +856,23 @@ authorization from the authors. - + + + + a window property changed + + + + + + + @@ -257,31 +882,142 @@ authorization from the authors. + + 0 + + + + 0 + 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + + + 0 + 1 + + + + + + + + 0 + + - + - + + + + the colormap for some window changed + + + + + + + @@ -297,6 +1033,26 @@ authorization from the authors. + + NOT YET DOCUMENTED + + + + + + @@ -307,21 +1063,41 @@ authorization from the authors. - + + + + keyboard mapping changed + + + + + + + + + + + + + @@ -340,10 +1116,12 @@ authorization from the authors. - + + + - + 0 @@ -353,50 +1131,141 @@ authorization from the authors. - - - - - - - - - - - - - - - + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + + + + + + + + + + + + + + + + + + + + + 0 + 1 - - 0 - - - - - - - - - - - - - - - - - - - - - - - - - + + 0 + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 @@ -408,11 +1277,84 @@ authorization from the authors. - + + + Creates a window + + + + + + + + + + + + + + + + + + + + + + + @@ -421,6 +1363,43 @@ authorization from the authors. + + change window attributes + + + + + + + + + + + + + @@ -433,27 +1412,95 @@ authorization from the authors. - + - - - + + + - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + Gets window attributes + + + + + + + + Destroys a window + + + + + + + @@ -467,8 +1514,30 @@ authorization from the authors. - + + + Changes a client's save set + + + + + + + + @@ -477,11 +1546,78 @@ authorization from the authors. + + Reparents a window + + + + + + + + + + + + + Makes a window visible + + + + + + + @@ -492,6 +1628,25 @@ authorization from the authors. + + Makes a window invisible + + + + + + + @@ -500,26 +1655,111 @@ authorization from the authors. - - - - - - - + 0 + 1 + 2 + 3 + 4 + 5 + 6 + + + + 0 + 1 + 2 + 3 + 4 + + + + Configures window attributes + + + + + + + + + + + + + 0 + 1 + + - + + + Change window stacking order + + + + + + + @@ -533,7 +1773,68 @@ authorization from the authors. + + + + + + + + + + + + Get current window geometry + + x, reply->y); + } + free(reply); +} + ]]> + + + + + @@ -542,13 +1843,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); + } +} + ]]> + + + @@ -560,8 +1905,55 @@ authorization from the authors. - + + + Get atom identifier by name + + atom); + free(reply); + } +} + ]]> + + + + + + + + + @@ -571,7 +1963,7 @@ authorization from the authors. - + name_len @@ -581,10 +1973,25 @@ authorization from the authors. 0 1 2 + + + + + - + @@ -600,6 +2007,71 @@ authorization from the authors. 8 + + Changes a window property + + + + + + + + + + + + + + + + + + @@ -616,7 +2088,7 @@ authorization from the authors. - + @@ -626,9 +2098,110 @@ authorization from the authors. - value_len + + value_len + + format + 8 + + + + + + + + + + Gets a window property + + + + + + + + + + + + + + @@ -646,9 +2219,41 @@ authorization from the authors. - + - + + + Sets the owner of a selection + + + + + + + + @@ -656,8 +2261,28 @@ authorization from the authors. - + + + + + + Gets the owner of a selection + + + + + @@ -665,97 +2290,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 + + + + + + @@ -768,13 +3003,63 @@ authorization from the authors. - + - + + + + + + + + + + + + + + get pointer coordinates + + + + @@ -786,8 +3071,8 @@ authorization from the authors. - - + + @@ -806,34 +3091,133 @@ authorization from the authors. - - - + + + - - + + + + move mouse pointer + + + + + + + + + 0 + 1 + 2 + 3 + + + + + + + + - - - + + + + + Sets input focus + + + + + + + + + + + - - + + @@ -848,9 +3232,32 @@ authorization from the authors. + name_len + + opens a font + + + + + + + @@ -858,6 +3265,11 @@ authorization from the authors. + + 0 + 1 + + @@ -885,7 +3297,7 @@ authorization from the authors. - + @@ -898,7 +3310,48 @@ authorization from the authors. char_infos_len + + + + + + + + + + + + + + + query font metrics + + + + @@ -908,7 +3361,7 @@ authorization from the authors. - + @@ -917,6 +3370,47 @@ authorization from the authors. + + get text extents + + + + + + + @@ -940,7 +3434,31 @@ authorization from the authors. names_len + + + + + get matching font names + + + + + @@ -960,7 +3478,7 @@ authorization from the authors. - + @@ -973,13 +3491,75 @@ authorization from the authors. name_len + + + + + + + + + + + + + + + + + get matching font names and information + + + + + + - + + + font_qty + @@ -999,37 +3579,290 @@ 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 @@ -1039,6 +3872,39 @@ authorization from the authors. + + Creates a graphics context + + + + + + + + + + + @@ -1047,13 +3913,69 @@ authorization from the authors. + + change graphics context components + + + + + + + + + + + + + - + @@ -1066,8 +3988,15 @@ authorization from the authors. + + 0 + 1 + 2 + 3 + + - + @@ -1077,6 +4006,16 @@ authorization from the authors. + + Destroys a graphics context + + + + @@ -1099,6 +4038,48 @@ authorization from the authors. + + copy areas + + + + + + + + + + + + + + @@ -1114,19 +4095,83 @@ authorization from the authors. + + + 0 + 1 + + + + + - - + + + - + + + draw lines + + + + + + + + + + + + + @@ -1141,6 +4186,43 @@ authorization from the authors. + + draw lines + + + + + + + + + @@ -1162,12 +4244,19 @@ authorization from the authors. + + 0 + 1 + 2 + + - - + + + @@ -1176,6 +4265,42 @@ authorization from the authors. + + Fills rectangles + + + + + + + + + @@ -1191,13 +4316,8 @@ authorization from the authors. 2 - - 0 - 1 - - - + @@ -1206,12 +4326,13 @@ authorization from the authors. + - + @@ -1258,6 +4379,52 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + @@ -1269,10 +4436,62 @@ authorization from the authors. string_len + + Draws text + + + + + + + + + + + + + + 0 + 1 + + - + @@ -1318,6 +4537,7 @@ authorization from the authors. + @@ -1326,12 +4546,38 @@ authorization from the authors. + + Allocate a color + + + + + + + + name_len @@ -1394,12 +4640,18 @@ authorization from the authors. + + 0 + 1 + 2 + + - + @@ -1410,10 +4662,11 @@ authorization from the authors. - + + name_len @@ -1444,6 +4697,7 @@ authorization from the authors. + name_len @@ -1458,11 +4712,15 @@ authorization from the authors. + + 0 + + - + @@ -1473,11 +4731,15 @@ authorization from the authors. + + 0 + + - + @@ -1486,11 +4748,82 @@ authorization from the authors. + + create cursor + + + + + + + + + + + + + + + + + + + Deletes a cursor + + + + + @@ -1504,8 +4837,14 @@ authorization from the authors. + + 0 + 1 + 2 + + - + @@ -1519,6 +4858,7 @@ authorization from the authors. + name_len @@ -1528,7 +4868,44 @@ authorization from the authors. + + + + + + + + check if extension is present + + + + + + @@ -1545,6 +4922,7 @@ authorization from the authors. + keycode_count @@ -1561,14 +4939,33 @@ authorization from the authors. - - length - 4 - + length + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + + + + 0 + 1 + + + + 0 + 1 + 2 + + - + @@ -1608,15 +5005,31 @@ authorization from the authors. + + + + + 0 + 1 + 2 + + + + 0 + 1 + 2 + + - - + + @@ -1624,23 +5037,38 @@ authorization from the authors. - - + + + + + 0 + 1 + + + + + 0 + 1 + 2 + 5 + 6 + + - - + + - + address_len - + @@ -1650,7 +5078,7 @@ authorization from the authors. - + @@ -1659,20 +5087,54 @@ authorization from the authors. + + 0 + 1 + + - + + + 0 + 1 + 2 + + - + + + 0 + + - + + + kills a client + + + + + + + @@ -1681,17 +5143,29 @@ authorization from the authors. + + 0 + 1 + + - + + + + 0 + 1 + 2 + + map_len - + @@ -1704,6 +5178,17 @@ authorization from the authors. + + + 0 + 1 + 2 + 3 + 4 + 5 + 6 + 7 + @@ -1714,7 +5199,7 @@ authorization from the authors. - +