1xcb_create_gc(3) XCB Requests xcb_create_gc(3)
2
3
4
6 xcb_create_gc - Creates a graphics context
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_void_cookie_t xcb_create_gc(xcb_connection_t *conn,
13 xcb_gcontext_t cid, xcb_drawable_t drawable,
14 uint32_t value_mask, const void *value_list);
15
17 conn The XCB connection to X11.
18
19 cid The ID with which you will refer to the graphics context,
20 created by xcb_generate_id.
21
22 drawable Drawable to get the root/depth from.
23
24 value_mask
25 TODO: NOT YET DOCUMENTED.
26
27 value_list
28 TODO: NOT YET DOCUMENTED.
29
31 Creates a graphics context. The graphics context can be used with any
32 drawable that has the same root and depth as the specified drawable.
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_gc_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_font_error_t
50 TODO: reasons?
51
52 xcb_match_error_t
53 TODO: reasons?
54
55 xcb_pixmap_error_t
56 TODO: reasons?
57
58 xcb_value_error_t
59 TODO: reasons?
60
62 xcb-requests(3), xcb_generate_id(3)
63
65 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
66 rections and improvements.
67
68
69
70X Version 11 libxcb 1.13.1 xcb_create_gc(3)