Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XClearArea(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XCopyArea(3X)

XClearArea(3X)  —  X Version 11

NAME

XClearArea, XClearWindow − clear windows

SYNTAX

XClearArea(display, w, x, y, width, height, exposures)
      Display ∗display;
      Window w;
      int x, y;
      unsigned int width, height;
      Bool exposures;

XClearWindow(display, w)
      Display ∗display;
      Window w;

ARGUMENTS

displaySpecifies the connection to the X server. 

exposuresSpecifies a boolean value of True or False.

wSpecifies the window ID. 

width

heightSpecify the width and height. 

x

ySpecify the x and y coordinates. 

DESCRIPTION

The XClearArea function paints a rectangular area in the specified window according to the specified dimensions with the window’s background pixel or pixmap. .PN XClearArea can generate BadMatch, BadValue, and BadWindow errors.

The XClearWindow function clears the entire area in the specified window and is equivalent to XClearArea (display, w, 0, 0, 0, 0, False). .PN XClearWindow can generate BadMatch, BadValue, and BadWindow errors.

DIAGNOSTICS

BadMatch An InputOnly window is used as a Drawable.

BadValue Some numeric value falls outside the range of values accepted by the request.  Unless a specific range is specified for an argument, the full range defined by the argument’s type is accepted.  Any argument defined as a set of alternatives can generate this error. 

BadWindow A value for a Window argument does not name a defined Window. 

SEE ALSO

XCopyArea(3X)
Xlib − C Language X Interface

1 March 1988

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