[cairo] using cairo in c++

Bill Spitzak spitzak at d2.com
Mon Oct 10 11:32:20 PDT 2005


The 2.0 CVS version of fltk can be compiled to use cairo for drawing 
everything(*). Run configure with --enable_cairo (or something like 
that). There is then a static cairo context called "fltk::cc" which you 
can use as the first argument to all your drawing.

Cairo should replace the need for fltk to do it's own device-indepent 
drawing layer, so Fl_Device has not been implemented in fltk2.

(*) well not everything yet. It is still drawing images and fonts using 
Xft/XRender, but this will be fixed. Biggest problem is that cairo has 
no "list the toy fonts" call and fltk needs this.

John Taber wrote:
> How would I use cairo with c++ and the Fltk widget set?  I didn't see 
> any examples.   There was an old 2003 list msg from Bill Spitzak that 
> indicated he used an addon Fl_Device but since Cairo has changed a lot, 
> any ideas?
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo
> 


More information about the cairo mailing list