To draw a single line between two points in a given drawable, use XDrawLine().
To draw multiple lines in a given drawable, use XDrawLines().
To draw multiple, unconnected lines in a given drawable, use XDrawSegments().