1xcb_create_pixmap(3) XCB Requests xcb_create_pixmap(3)
2
3
4
6 xcb_create_pixmap - Creates a pixmap
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_void_cookie_t xcb_create_pixmap(xcb_connection_t *conn,
13 uint8_t depth, xcb_pixmap_t pid, xcb_drawable_t drawable,
14 uint16_t width, uint16_t height);
15
17 conn The XCB connection to X11.
18
19 depth TODO
20
21 pid The ID with which you will refer to the new pixmap, created
22 by xcb_generate_id.
23
24 drawable Drawable to get the screen from.
25
26 width The width of the new pixmap.
27
28 height The height of the new pixmap.
29
31 Creates a pixmap. The pixmap can only be used on the same screen as
32 drawable is on and only with drawables of the same depth.
33
35 Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the
36 event loop.
37
38 If you want to handle errors directly with xcb_request_check instead,
39 use xcb_create_pixmap_checked. See xcb-requests(3) for details.
40
42 xcb_alloc_error_t
43 The X server could not allocate the requested resources (no
44 memory?).
45
46 xcb_drawable_error_t
47 The specified drawable (Window or Pixmap) does not exist.
48
49 xcb_value_error_t
50 TODO: reasons?
51
53 xcb-requests(3), xcb_generate_id(3)
54
56 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
57 rections and improvements.
58
59
60
61X Version 11 libxcb 1.13.1 xcb_create_pixmap(3)