[ANN] CairoPad (wxCairoContext?)

Robin Dunn robin at alldunn.com
Fri Dec 14 08:21:26 PST 2007


Robert Roebling wrote:
>> ps. I did some experiment with Cairo using wx/cpp, before using it with 
>> wxLua. I modified a local copy of src/generic/graphicc.cpp to use Cairo 
>> 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.


-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!




More information about the wx-users mailing list