[cairo] API Shakeup: Eliminating cairo_show_surface

Bill Spitzak spitzak at d2.com
Tue May 3 13:35:00 PDT 2005

Carl Worth wrote:

> 2) There's a "lock pattern" operation that combines the pattern's
>    matrix and the CTM into the gstate's source transformation.
> 3) The user wants to be able to control the timing of the lock,
>    (often either at the time of set_source or at the time of a drawing
>    operation).
> So maybe all we need is a new cairo_lock_source(cairo_t *cr) call, so
> that the pattern scaling would happen by default and the
> device_space_pattern example above would have to have a call to
> cairo_lock_source in order to work as desired?

Might be useful to lock the stroke thickness and the font as well. The 
primary purpose is to make it easier to emulate other graphic API's 
without having to abandon all the transformations in Cairo. Also would 
allow the stroke to do something like elliptical pens.

More information about the cairo mailing list