[cairo] Cairo API is all shook up (was: API Shakeup:
cairo_create and eliminating cairo_set_target_surface)
Robert O'Callahan
rocallahan at novell.com
Sun May 8 19:41:41 PDT 2005
On Sat, 2005-05-07 at 15:22 -0400, Owen Taylor wrote:
> The only potential problem I found was that in a couple of places
> I was using cairo_create() without a target surface as a no-op
> drawing target, and had to switch to creating a 1x1 image instead.
>
> It wasn't clear if cairo_create(NULL) was meant to be legal or
> not, and even if it is legal, it wasn't really what I wanted,
> since I needed to be able to read back the CTM normally.
I'm updating our code too. We create contexts with no surface to do
measurement and hit-testing on paths, so I'd vote for some API for this.
Rob
More information about the cairo
mailing list