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