We could use lines as in the triangle to draw ourselves a rectangle, but Cairo has the ability to draw rectangles built-in so we might as well use it: cairo_rectangle (cr, x, y, width, height). The x, ...