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.

bool
getClipRectangle

Parameters

cr Context

a cairo context

rect GdkRectangle

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