xcb\_copy\_area(3) XCB Requests xcb\_copy\_area(3)

# [NAME](#NAME)

xcb\_copy\_area - copy areas

# [SYNOPSIS](#SYNOPSIS)

**#include &lt;xcb/xproto.h&gt;**

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_copy\_area**(xcb\_connection\_t \**conn*, xcb\_drawable\_t *src\_drawable*, xcb\_drawable\_t *dst\_drawable*, xcb\_gcontext\_t *gc*, int16\_t *src\_x*, int16\_t *src\_y*, int16\_t *dst\_x*, int16\_t *dst\_y*, uint16\_t *width*, uint16\_t *height*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*src\_drawable*](#src_drawable)

The source drawable (Window or Pixmap).

[*dst\_drawable*](#dst_drawable)

The destination drawable (Window or Pixmap).

[*gc*](#gc)

The graphics context to use.

[*src\_x*](#src_x)

The source X coordinate.

[*src\_y*](#src_y)

The source Y coordinate.

[*dst\_x*](#dst_x)

The destination X coordinate.

[*dst\_y*](#dst_y)

The destination Y coordinate.

[*width*](#width)

The width of the area to copy (in pixels).

[*height*](#height)

The height of the area to copy (in pixels).

# [DESCRIPTION](#DESCRIPTION)

Copies the specified rectangle from *src\_drawable* to *dst\_drawable*.

# [RETURN VALUE](#RETURN_VALUE)

Returns an *xcb\_void\_cookie\_t*. Errors (if any) have to be handled in the event loop.

If you want to handle errors directly with *xcb\_request\_check* instead, use *xcb\_copy\_area\_checked*. See [**xcb-requests(3)**](/man/os/libxcb/xcb-requests.3) for details.

# [ERRORS](#ERRORS)

[*xcb\_drawable\_error\_t*](#xcb_drawable_error_t)

The specified *drawable* (Window or Pixmap) does not exist.

[*xcb\_g\_context\_error\_t*](#xcb_g_context_error_t)

The specified graphics context does not exist.

[*xcb\_match\_error\_t*](#xcb_match_error_t)

*src\_drawable* has a different root or depth than *dst\_drawable*.

# [SEE ALSO](#SEE_ALSO)

[**xcb-requests**(3)](/man/os/libxcb/xcb-requests.3)

# [AUTHOR](#AUTHOR)

Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements.

libxcb 1.17.0 X Version 11

---

Document: xcb_copy_area_checked(3) from libxcb 1.17.0-r17 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxcb.git
