xcb\_poly\_fill\_rectangle(3) XCB Requests xcb\_poly\_fill\_rectangle(3)

# [NAME](#NAME)

xcb\_poly\_fill\_rectangle - Fills rectangles

# [SYNOPSIS](#SYNOPSIS)

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

## [Request function](#Request_function)

xcb\_void\_cookie\_t **xcb\_poly\_fill\_rectangle**(xcb\_connection\_t \**conn*, xcb\_drawable\_t *drawable*, xcb\_gcontext\_t *gc*, uint32\_t *rectangles\_len*, const xcb\_rectangle\_t \**rectangles*);

# [REQUEST ARGUMENTS](#REQUEST_ARGUMENTS)

[*conn*](#conn)

The XCB connection to X11.

[*drawable*](#drawable)

The drawable (Window or Pixmap) to draw on.

[*gc*](#gc)

The graphics context to use.

The following graphics context components are used: function, plane-mask, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask.

The following graphics context mode-dependent components are used: foreground, background, tile, stipple, tile-stipple-x-origin, and tile-stipple-y-origin.

[*rectangles\_len*](#rectangles_len)

The number of *xcb\_rectangle\_t* structures in *rectangles*.

[*rectangles*](#rectangles)

The rectangles to fill.

# [DESCRIPTION](#DESCRIPTION)

Fills the specified rectangle(s) in the order listed in the array. For any given rectangle, each pixel is not drawn more than once. If rectangles intersect, the intersecting pixels are drawn multiple times.

# [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\_poly\_fill\_rectangle\_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)

TODO: reasons?

# [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_poly_fill_rectangle(3) from libxcb 1.17.0-r16 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxcb.git
