[wx-dev] wxDC reorganisation
Stefan Csomor
csomor at advancedconcepts.ch
Wed May 2 01:02:28 PDT 2007
Hi
> > what is missing from the wxGraphics... architecture
> > to achieve this? Using wxGCDC you can draw using the
> > conventional wxDC API against a plugged graphics context,
> > ie also draw using Cairo
>
> What is missing is the ability to switch a drawing
> backend (using the wxDC interface) at runtime. The
> user may already choose wxGCDC at compile time, but
> this has to work transparently.
ok, I start to understand : you want to switch between the 'old' and
'cairo' code at runtime in a wxDC instance. I see that we cannot do that
now.
I don't think the performance hits of another indirection would really
be a problem when dealing with graphics code, as we are giving
high-level commands.
If you find a way to reuse wxGCDC implementation I think we would
benefit from a single implementation point for a cairo feature, but of
course, that's just my view ...
Best,
Stefan
More information about the wx-dev
mailing list