[ANN] CairoPad (wxCairoContext?)

Robert Roebling robert at roebling.de
Sat Dec 15 04:00:55 PST 2007


> >> in win32. Drawing sample's alpha test worked. But, I think, to use Cairo 
> >> API directly, a wxCairoContext and wxCairoCanvas (similar to 
> >> wxGLContext,wxGLCanvas) would be a good addition.
> > 
> > I wonder what this would do. Wouldn't it be enough to to add a
> > function like 
> > 
> > cairo_t* GetCairoFromWindow( wxWindow *);
> > 
> > and be done with it? From then on you'd just use the Cairo API
> > which is documented. 
> 
> The wxGraphicsContext and related classes already have support for 
> getting or using the native handles used by the backend implementation. 
>   So all that would be needed to make this work is to finish whatever is 
> needed for using the Cairo backend on all platforms.

I see no connection between the wxGraphics classes and using
Cairo directly, in particular there is reason why Cairo 
support in wxWidgets should depend on wxGraphics classes.
We'll surely need to write a sample to see what problems
will occur when using Cairo in a wxWindow and more so in
a wxScrolledWindow.

Robert




More information about the wx-users mailing list