cairoGetClipRectangle

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.

bool
cairoGetClipRectangle

Parameters

cr cairo.context.Context

a cairo context

rect gdk.rectangle.Rectangle

return location for the clip, or null

Return Value

Type: bool

true if a clip rectangle exists, false if all of cr is clipped and all drawing can be skipped