XCopyGC(display, src, valuemask, dest)
Display *display;
GC src, dest;
unsigned long valuemask;
display | Specifies the connection to the X server. |
src | Specifies the components of the source GC. |
valuemask | Specifies which components in the GC are to be copied to the destination GC. This argument is the bitwise inclusive OR of zero or more of the valid GC component mask bits. |
dest | Specifies the destination GC. |
XCopyGC() can generate BadAlloc, BadGC, and BadMatch errors.
BadAlloc | The server failed to allocate the requested source or server memory. |
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. |