[Mono-devel-list] New code for System.Drawing...

Alexandre Pigolkine pigolkine at gmx.de
Sat Apr 19 21:33:36 EDT 2003


Hello,

>
> Maybe we could virtualize the drawing primitives?  So that we could plug
> different implementations of it?  For example, in the long run, we might
> want to use Xr (and the yet unfinished underlying code), or libart, or
> something else.
>
> In this particular case, I think that virtualization is worth doing at
> this point.

I made some progress on the virtualization of primitives by creating
IGraphics,
IBitmap etc. interfaces from public properties/methods of corresponding
classes.
Those interfaces should be implemented using library specific functions
(Win32/GTK/etc)
and "independent" objects will just delegate calls to the implementation.
Library specific
factories are responsible for object creation at runtime.
So, it should be possible to setup SysDrawing to work with any
implementation.

Is it ok to proceed like this ? Shall I post the complete code or diff to
the list ?

Alexandre





More information about the Mono-devel-list mailing list