[cairo] Change the coordinate system for drawing

craf pyclutter at gmail.com
Fri Oct 21 06:08:24 PDT 2011


-----Mensaje original-----
De: Tobias Hoffmann <lcairo-list at thax.hardliners.org>
Para: craf <pyclutter at gmail.com>
Cc: Cairo <cairo at cairographics.org>
Asunto: Re: [cairo] Change the coordinate system for drawing
Fecha: Fri, 21 Oct 2011 12:25:09 +0200

craf wrote:
> Conclusion
> ----------
> I tried to use the methods, translated, rotated, transformed, but only
> take effect what I want to draw, for example a curve or a line.
>   
>AFAIUI you want the coordinate-transformation to apply also to any 
>input-events your DrawinArea receives?
>This is not handled by cairo.
>Any transformation you set in cairo only applies to outputs you make. 
>You'll have to transform the input coordinates yourself.
>I've seen cairo_user_to_device() and cairo_device_to_user() in the C 
>API, which could be of help to you; there are certainly Python bindings 
>for them. 

 > Tobias

Ok. Thank




More information about the cairo mailing list