Function

Gdkcairo_get_clip_rectangle

Declaration [src]

gboolean
gdk_cairo_get_clip_rectangle (
  cairo_t* cr,
  GdkRectangle* rect
)

Description [src]

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.

Parameters

cr

Type: cairo_t

A cairo context.

The data is owned by the caller of the function.
rect

Type: GdkRectangle

Return location for the clip, or NULL.

The argument will be set by the function.
The argument can be NULL.
The returned data is owned by the function.

Return value

Type: gboolean

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