1xcb_poly_segment(3) XCB Requests xcb_poly_segment(3)
2
3
4
6 xcb_poly_segment - draw lines
7
9 #include <xcb/xproto.h>
10
11 Request function
12 xcb_void_cookie_t xcb_poly_segment(xcb_connection_t *conn,
13 xcb_drawable_t drawable, xcb_gcontext_t gc,
14 uint32_t segments_len, const xcb_segment_t *segments);
15
17 conn The XCB connection to X11.
18
19 drawable A drawable (Window or Pixmap) to draw on.
20
21 gc The graphics context to use.
22
23 TODO: document which attributes of a gc are used
24
25 segments_len
26 The number of xcb_segment_t structures in segments.
27
28 segments An array of xcb_segment_t structures.
29
31 Draws multiple, unconnected lines. For each segment, a line is drawn
32 between (x1, y1) and (x2, y2). The lines are drawn in the order listed
33 in the array of xcb_segment_t structures and does not perform joining
34 at coincident endpoints. For any given line, a pixel is not drawn more
35 than once. If lines intersect, the intersecting pixels are drawn multi‐
36 ple times.
37
38 TODO: include the xcb_segment_t data structure
39
40 TODO: an example
41
43 Returns an xcb_void_cookie_t. Errors (if any) have to be handled in the
44 event loop.
45
46 If you want to handle errors directly with xcb_request_check instead,
47 use xcb_poly_segment_checked. See xcb-requests(3) for details.
48
50 xcb_drawable_error_t
51 The specified drawable does not exist.
52
53 xcb_g_context_error_t
54 The specified gc does not exist.
55
56 xcb_match_error_t
57 TODO: reasons?
58
60 xcb-requests(3)
61
63 Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐
64 rections and improvements.
65
66
67
68X Version 11 libxcb 1.12 xcb_poly_segment(3)