1xcb_lookup_color(3) XCB Requests xcb_lookup_color(3)
2
3
4
6 xcb_lookup_color -
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_lookup_color_cookie_t xcb_lookup_color(xcb_connection_t *conn,
13 xcb_colormap_t cmap, uint16_t name_len, const char *name);
14
15 Reply datastructure
16 typedef struct xcb_lookup_color_reply_t {
17 uint8_t response_type;
18 uint8_t pad0;
19 uint16_t sequence;
20 uint32_t length;
21 uint16_t exact_red;
22 uint16_t exact_green;
23 uint16_t exact_blue;
24 uint16_t visual_red;
25 uint16_t visual_green;
26 uint16_t visual_blue;
27 } xcb_lookup_color_reply_t;
28
29 Reply function
30 xcb_lookup_color_reply_t
31 *xcb_lookup_color_reply(xcb_connection_t *conn,
32 xcb_lookup_color_cookie_t cookie, xcb_generic_error_t **e);
33
35 conn The XCB connection to X11.
36
37 cmap TODO: NOT YET DOCUMENTED.
38
39 name_len TODO: NOT YET DOCUMENTED.
40
41 name TODO: NOT YET DOCUMENTED.
42
44 response_type
45 The type of this reply, in this case XCB_LOOKUP_COLOR. This
46 field is also present in the xcb_generic_reply_t and can be
47 used to tell replies apart from each other.
48
49 sequence The sequence number of the last request processed by the X11
50 server.
51
52 length The length of the reply, in words (a word is 4 bytes).
53
54 exact_red TODO: NOT YET DOCUMENTED.
55
56 exact_green
57 TODO: NOT YET DOCUMENTED.
58
59 exact_blue
60 TODO: NOT YET DOCUMENTED.
61
62 visual_red
63 TODO: NOT YET DOCUMENTED.
64
65 visual_green
66 TODO: NOT YET DOCUMENTED.
67
68 visual_blue
69 TODO: NOT YET DOCUMENTED.
70
73 Returns an xcb_lookup_color_cookie_t. Errors have to be handled when
74 calling the reply function xcb_lookup_color_reply.
75
76 If you want to handle errors in the event loop instead, use
77 xcb_lookup_color_unchecked. See xcb-requests(3) for details.
78
80 This request does never generate any errors.
81
84 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
85 rections and improvements.
86
87
88
89X Version 11 libxcb 1.13.1 xcb_lookup_color(3)