views:

48

answers:

0

I love just about everything about the DFL GUI toolkit for D except that it only works on Windows because it's basically a pretty, high-level wrapper around the Windows API. How hard would it likely be to simply port such a toolkit to Linux (I don't really care about any other OS besides Windows and Linux) using Winelib? What are the odds that if I compiled such a library on Linux and linked it with Winelib it would mostly "just work"? What non-obvious steps might be involved?

Note: For those who are unfamiliar with D's methods of working with C code, C code can be called directly from D. You just need to translate the header file to D (this is already done for the Win32 headers, but not the Winelib headers. I'm not sure if the Winelib headers even need to be translated or if the Windows headers are good enough.), compile the C code with a C compiler, and link the C object files in.