Context.copyClipRectangleList

cairo.rectangle_list.RectangleList copyClipRectangleList()

Gets the current clip region as a list of rectangles in user coordinates. Never returns null.

The status in the list may be [cairo.types.Status.ClipNotRepresentable] to indicate that the clip region cannot be represented as a list of user-space rectangles. The status may have other values to indicate other errors.

Returns

the current clip region as a list of rectangles in user coordinates,

which should be destroyed using [cairo.rectangle_list.RectangleList.destroy].