Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XCopyArea(3X) — AOS 4.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XClearArea(3X)

XCopyArea(3X)  —  X Version 11

NAME

XCopyArea, XCopyPlane − copy areas

SYNTAX

XCopyArea(display, src, dest, gc, src_x, src_y, width, height,  dest_x, dest_y)
      Display ∗display;
      Drawable src, dest;
      GC gc;
      int src_x, src_y;
      unsigned int width, height;
      int dest_x, dest_y;

XCopyPlane(display, src, dest, gc, src_x, src_y, width, height, dest_x, dest_y, plane)
      Display ∗display;
      Drawable src, dest;
      GC gc;
      int src_x, src_y;
      unsigned int width, height;
      int dest_x, dest_y;
      unsigned long plane;

ARGUMENTS

dest_x

dest_ySpecify the x and y coordinates of the destination rectangle relative to its origin.  These coordinates specify the upper left corner of the destination rectangle. 

displaySpecifies the connection to the X server. 

gcSpecifies the graphics context. 

planeSpecifies the bit-plane.  You must set exactly one bit. 

src

destSpecify the source and destination rectangles to be combined. 

src_x

src_ySpecify the x and y coordinates of the source rectangle relative to its origin.  These coordinates specify the upper left corner of the source rectangle. 

width

heightSpecify the width and height. 

DESCRIPTION

The XCopyArea function combines the specified rectangle of src with the specified rectangle of dest. .PN XCopyArea can generate BadDrawable, BadGC, and BadMatch errors.

The XCopyPlane function uses a single bit plane of the specified source rectangle combined with the specified GC to modify the specified rectangle of dest. .PN XCopyPlane can generate BadDrawable, BadGC, BadMatch, and BadValue errors.

DIAGNOSTICS

BadDrawable
A value for a Drawable argument does not name a defined Window or Pixmap.

BadGC A value for a GContext argument does not name a defined GContext. 

BadMatch An InputOnly window is used as a Drawable.

BadMatch Some argument or pair of arguments has the correct type and range but fails to match in some other way required by the request. 

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. 

SEE ALSO

XClearArea(3X)
Xlib − C Language X Interface

1 March 1988

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