[cairo] cairo/gdk + clipping

Andrew Cowie andrew at operationaldynamics.com
Thu Aug 19 01:51:27 PDT 2010


On Wed, 2010-08-18 at 15:49 +0200, Benjamin Otte wrote:
> So if you render everything with Cairo, what you usually want to for
> creating your Cairo context is run code like this:
> 
> cr = gdk_cairo_create (event->window);
> gdk_cairo_region (cr, event->region);
> cairo_clip (cr);
> 
> Then you end up with a region that is properly clipped...

I thought GdkRegion was deprecated?

AfC
Sydney
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.cairographics.org/archives/cairo/attachments/20100819/bb31a53e/attachment.pgp>


More information about the cairo mailing list