Package: cairo

Function cairo:region-xor-rectangle

Lambda List

cairo:region-xor-rectangle (region x y width height)

Arguments

region -- a cairo:region-t instance
x -- an integer for the x coordinate
y -- an integer for the y coordinate
width -- an integer for the width of the rectangle
height -- an integer for the height of the rectangle

Return Value

The passed in cairo:region-t instance with the result or nil if an error occured.

Details

Computes the exclusive difference of region with rectangle and places the result in region. That is, region will be set to contain all areas that are either in region or in rectangle, but not in both.
 

See also

cairo:region-t
cairo:rectangle-int-t
2025-1-26