Struct xcb::ffi::xproto::xcb_poly_segment_request_t [] [src]

#[repr(C)]
pub struct xcb_poly_segment_request_t { pub major_opcode: u8, pub pad0: u8, pub length: u16, pub drawable: xcb_drawable_t, pub gc: xcb_gcontext_t, }

draw lines

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 xcb_segment_t 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 multiple times.

TODO: include the xcb_segment_t data structure

TODO: an example

Fields

A drawable (Window or Pixmap) to draw on.

The graphics context to use.

TODO: document which attributes of a gc are used