1xcb_query_colors(3)              XCB Requests              xcb_query_colors(3)
2
3
4

NAME

6       xcb_query_colors -
7

SYNOPSIS

9       #include <xcb/xproto.h>
10
11   Request function
12       xcb_query_colors_cookie_t xcb_query_colors(xcb_connection_t *conn,
13              xcb_colormap_t cmap, uint32_t pixels_len, const
14              uint32_t *pixels);
15
16   Reply datastructure
17       typedef struct xcb_query_colors_reply_t {
18           uint8_t  response_type;
19           uint8_t  pad0;
20           uint16_t sequence;
21           uint32_t length;
22           uint16_t colors_len;
23           uint8_t  pad1[22];
24       } xcb_query_colors_reply_t;
25
26   Reply function
27       xcb_query_colors_reply_t
28              *xcb_query_colors_reply(xcb_connection_t *conn,
29              xcb_query_colors_cookie_t cookie, xcb_generic_error_t **e);
30
31   Reply accessors
32       xcb_rgb_t *xcb_query_colors_colors(const xcb_query_colors_request_t
33              *reply);
34
35       int xcb_query_colors_colors_length(const xcb_query_colors_reply_t
36              *reply);
37
38       xcb_rgb_iterator_t xcb_query_colors_colors_iterator(const
39              xcb_query_colors_reply_t *reply);
40

REQUEST ARGUMENTS

42       conn      The XCB connection to X11.
43
44       cmap      TODO: NOT YET DOCUMENTED.
45
46       pixels_len
47                 TODO: NOT YET DOCUMENTED.
48
49       pixels    TODO: NOT YET DOCUMENTED.
50

REPLY FIELDS

52       response_type
53                 The type of this reply, in this case XCB_QUERY_COLORS. This
54                 field is also present in the xcb_generic_reply_t and can be
55                 used to tell replies apart from each other.
56
57       sequence  The sequence number of the last request processed by the X11
58                 server.
59
60       length    The length of the reply, in words (a word is 4 bytes).
61
62       colors_len
63                 TODO: NOT YET DOCUMENTED.
64

DESCRIPTION

RETURN VALUE

67       Returns an xcb_query_colors_cookie_t. Errors have to be handled when
68       calling the reply function xcb_query_colors_reply.
69
70       If you want to handle errors in the event loop instead, use
71       xcb_query_colors_unchecked. See xcb-requests(3) for details.
72

ERRORS

74       This request does never generate any errors.
75

SEE ALSO

AUTHOR

78       Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
79       rections and improvements.
80
81
82
83X Version 11                      libxcb 1.13              xcb_query_colors(3)
Impressum