[cairo] API Shakeup: A hidden offset for the xlib backend

Bill Spitzak spitzak at d2.com
Wed Feb 23 10:07:47 PST 2005


Isn't this the same as doing a transform before any drawing? I would 
think a library interested in this could do the correct cairo translate 
before passing the cairo context to the other code.

Carl Worth wrote:
> On Thu, 06 Jan 2005 11:47:07 -0500, Carl Worth wrote:
> 
>>And, finally, do we want a cairo_function for this, or should we
>>restrict it to a cairo_surface function, (cairo_xlib_surface ?). That
>>might also help hide the wart away.
> 
> 
> We discussed this a little at the recent meeting, and decided this is
> a display-device--specific operation. So I propose adding some
> function along the lines of:
> 
> 	void
> 	cairo_xlib_surface_set_???_offset (cairo_surface_t *surface,
> 					   int x, int y);
> 
> And I nominated Owen to name this function and provide an
> implementation, since he's the one who is closest to the issue.
> 
> Other display devices may need similar functions eventually, and if
> so, we can use this xlib function as a model.



More information about the cairo mailing list