Function CanvasItem.drawRect

Draws a rectangle. If filled is true, the rectangle will be filled with the color specified. If filled is false, the rectangle will be drawn as a stroke with the color and width specified. If antialiased is true, the lines will be antialiased. Note: width and antialiased are only effective if filled is false.

void drawRect (
  const(Rect2) rect,
  const(Color) color,
  const(bool) filled = true,
  const(double) width = 1.00000,
  const(bool) antialiased = false
) nothrow @nogc;