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 cairo_t
 

A cairo context.

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

Return location for the clip, or NULL.

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

Return value

Returns: gboolean
 

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