getClipRectangle

This is a convenience function around cairo_clip_extents(). It rounds the clip extents to integer coordinates and returns a boolean indicating if a clip area exists.

static
int
getClipRectangle

Parameters

cr Context

a cairo context

rect Rectangle*

return location for the clip, or NULL. out[allow-none]

Return Value

Type: int

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

Meta