NAME
xcbpolysegment - draw lines SYNOPSIS
#include
Request function xcbvoidcookiet xcbpolysegment(xcbconnectiont *conn, xcbdrawablet drawable, xcbgcontextt gc, uint32t segmentslen, const xcbsegmentt *segments); REQUEST ARGUMENTS conn The XCB connection to X11. drawable A drawable (Window or Pixmap) to draw on. gc The graphics context to use. TODO: document which attributes of a gc are used segmentslen The number of xcbsegmentt structures in segments. segments An array of xcbsegmentt structures. DESCRIPTION Draws multiple, unconnected lines. For each segment, a line is drawn between (x1, y1) and (x2, y2). The lines are drawn in the order listed in the array of xcbsegmentt structures and does not perform joining at coincident endpoints. For any given line, a pixel is not drawn more than once. If lines intersect, the intersecting pixels are drawn multi‐ ple times. TODO: include the xcbsegmentt data structure TODO: an example RETURN VALUE Returns an xcbvoidcookiet. Errors (if any) have to be handled in the event loop. If you want to handle errors directly with xcbrequestcheck instead, use xcbpolysegmentchecked. See xcb-requests(3) for details. ERRORS xcbdrawableerrort The specified drawable does not exist. xcbgcontexterrort The specified gc does not exist. xcbmatcherrort TODO: reasons? SEE ALSO
xcb-requests(3) AUTHOR Generated from xproto.xml. Contact xcb@lists.freedesktop.org for cor‐ rections and improvements. X Version 11 libxcb 1.13 xcbpolysegment(3)