Display *display; Window window; GC gc; int x, y; /* upper left corner */ unsigned int width, height; /* size of rectangle */ XFillRectangle( display, window, gc, x, y, width, height );