[Gtk-sharp-list] System.Drawing Gdk binding

Artem Popov tfwo@mail.ru
Wed, 07 Apr 2004 08:10:52 +0700

Hi! Why, of course I'll be working on it, because I need the
functionality :)
There're several issues however:
At first, I tried to put together an independent assembly, but it's a
real pain because everything useful in System.Drawing is internal and
private :)
e.g. to create a Graphics you need to make a static method inside
Graphics, because all the constructors are private. I didn't find any
other way at this point. The c binding can however be split from

On the second hand, Graphics has FromHwnd (which I beleive is wins
only), so why not have FromGdk? Is it the specification which is so
pro-windows :)

I'll look into the issue further --Artem

On mar, 2004-04-06 at 20:50, Miguel de Icaza wrote:
> Hello,
>     Lovely work Artem, this is something I wanted to see in Gtk#, and am
> very glad you looked into the issue.
> > Graphics.diff
> > gdipFunctions.diff:
> > made against 0.31, I don't have cvs on this machine, sorry :(
> The problem here is that this exposes an API entry point in
> System.Drawing that we can not expose.
> There are two considerations to keep in mind:
> 	* We are trying to keep the Gtk#, Gdk# and company independent
> 	  of System.Drawing as part of our full independent stack.
> 	* We can not add API entry points to System.Drawing
> Your code probably should go into a third assembly and library: one that
> glues the worlds together as its own module, say `gtk-drawing'.
> Would you be interested in doing the work?
> Miguel