Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XFillRectaA(3x) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

 

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

displaySpecifies a connection to an X server; returned from XOpenDisplay(). 

drawableSpecifies the drawable. 

gcSpecifies the graphics context. 

x

ySpecify the x and y coordinates of the upper-left corner of the rectangle, relative to the origin of the drawable. 

width

heightSpecify 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 these 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(), XDrawPoint(), XDrawPoints(), XDrawRectangle(), XDrawRectangles(), XDrawSegments(), XFillArc(), XFillArcs(), XFillPolygon(), XFillRectangles(). 

Copyright O’Reilly & Assoc.  —  

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026