[Mono-winforms-list] Wine/Cairo unification idea.
Miguel de Icaza
miguel@ximian.com
21 Sep 2003 20:45:25 -0400
Hey guys,
I am not sure if we will be able to unify the two implementation
systems for System.Drawing, but it occurs to me that for things like
Font, we could have a single implementation.
The idea is that the font could be used in the two contexts: Wine
and Cairo. If the font is initialized from an HFONT, we know we have a
Win32 font, and we track its properties. If we ever need the Cairo
version of the font, we will construct the cairo handle from it. The
same happens in the other direction. We always delay the creation of
the actual object until we absolutely have to. And when we do, we
create the kind of object that we need.
For Wine-based applications that means that the FromHXXXX and ToHXXX
would would be the ones triggering the actual creation/referencing of a
Wine object.
Miguel.