cairoGetClipRectangle

fnbool cairoGetClipRectangle(cairo.context.Context cr, out gdk.rectangle.Rectangle rect)

This is a convenience function around [cairo.context.Context.clipExtents]. It rounds the clip extents to integer coordinates and returns a boolean indicating if a clip area exists.

Parameters

cra cairo context
rectreturn location for the clip, or null

Returns

true if a clip rectangle exists, false if all of cr is

clipped and all drawing can be skipped