[cairo] A hidden offset for the xlib backend

James Henstridge james at jamesh.id.au
Mon Sep 6 05:27:40 PDT 2004


On 06/09/04 19:11, Jost Boekemeier wrote:

>You could also wrap cairo entirely and make cairo
>drawing an implementation detail.  This has the
>advantage that you could later switch to an
>implementation which keeps the scene graph (for fast
>animations for example).
>  
>
I think one of the reasons for using Cairo in GTK is so that GTK doesn't 
have to provide a drawing API.

By just using the Cairo API, libraries designed to work with Cairo (such 
as xsvg) should work fine with GTK, and any additions to the Cairo API 
can be taken advantage of immediately, without waiting for a new GTK 
release.  It also means you lose the benefit of using the same API for 
drawing to the screen as well as printer, unless GTK also wraps all the 
printing related stuff in Cairo.

If this can be done as easily and non-intrusively as Owen says, then it 
will mean more users for Cairo and less maintenance work for the GTK 
maintainers.

James.

-- 
Email: james at jamesh.id.au
WWW:   http://www.jamesh.id.au/





More information about the cairo mailing list