Package: cairo

Function cairo:region-create-rectangles

Lambda List

cairo:region-create-rectangles (&rest rects)

Arguments

rects -- rectangles, each rectangle is represented as a (x y width height) list with the values for the rectangle

Return Value

The newly allocated cairo:region-t instance.

Details

Allocates a new cairo:region-t instance containing the union of all given rectangles. Free with the cairo:region-destroy function. This function always returns a valid instance. If memory cannot be allocated, then a special error object is returned where all operations on the object do nothing. You can check for this with the cairo:region-status function.

Examples

(defvar rect (cairo:region-create-rectangles '(0 0 10 20) '(10 20 50 60)))
=> RECT
(cairo:region-status rect)
=> :SUCCESS
(cairo:region-extents rect)
=> (0 0 60 80)    
 

See also

2025-1-26