Function x11rb::protocol::xproto::poly_fill_rectangle
source · pub fn poly_fill_rectangle<'c, 'input, Conn>(
conn: &'c Conn,
drawable: Drawable,
gc: Gcontext,
rectangles: &'input [Rectangle],
) -> Result<VoidCookie<'c, Conn>, ConnectionError>where
Conn: RequestConnection + ?Sized,
Expand description
Fills rectangles.
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.
§Fields
drawable
- The drawable (Window or Pixmap) to draw on.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
- The number ofxcb_rectangle_t
structures inrectangles
.rectangles
- The rectangles to fill.
§Errors
Drawable
- The specifieddrawable
(Window or Pixmap) does not exist.GContext
- The specified graphics context does not exist.Match
- TODO: reasons?