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 XOpenDis‐
play().
drawable
Specifies the drawable.
gc Specifies the graphics context.
x Specify the x and y coordinates of the upper-left corner of
y the rectangle, relative to the origin of the drawable.
width
height Specify the dimensions in pixels of the rectangle to be
filled.
DescriptionXFillRectangle() fills the rectangular area in the specified drawable
using the x and y coordinates, width and height dimensions, and graph‐
ics 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: func‐
tion, 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 AlsoXClearArea(), XClearWindow(), XCopyArea(), XCopyPlane(), XDraw,
XDrawArc(), XDrawArcs(), XDrawFilled(), XDrawLine(), XDrawLines(),
XDrawPoint(), XDrawPoints(), XDrawRectangle(), XDrawRectangles(),
XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectan‐
gles().
Xlib - Drawing Primitives XFillRectangle()