XFillRectangle() XFillRectangle()
Name
XFillRectangle - fill a rectangular area.
Synopsis
XFillRectangle(display, drawable, gc, x, y, width, height)
Display *display;
Drawable drawable;
GC gc;
int x, y;
unsigned int width, height;
Arguments
display Specifies a connection to an X server; returned from XOpenDisplay().
drawable
Specifies the drawable.
gc Specifies the graphics context.
x Specify the x and y coordinates of the upper-left corner of the rectangle, relative to the origin of the drawable.
y
width
height Specify the dimensions in pixels of the rectangle to be filled.
Description
XFillRectangle() fills the rectangular area in the specified drawable using the x and y coordinates, width and height dimensions, and
graphics context you specify. XFillRectangle() draws some but not all of the path drawn by XDrawRectangle() with the same arguments.
XFillRectangle() uses the following graphics context components: function, plane_mask, fill_style, subwindow_mode, clip_x_origin, clip_y_
origin, and clip_ mask. This function also uses these graphics context components depending on the fill_style: foreground, background
tile, stipple, ts_x_origin, and ts_y_origin.
For more information, see Volume One, Chapter 6, Drawing Graphics and Text, and Chapter 5, The Graphics Context.
Errors
BadDrawable
BadGC
BadMatch
See Also
XClearArea(), XClearWindow(), XCopyArea(), XCopyPlane(), XDraw, XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(), XDraw-
Point(), XDrawPoints(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectangles().
Xlib - Drawing Primitives XFillRectangle()