Ideal D GUI Toolkit

Juan Manuel Cabo juanmanuel.cabo at gmail.com
Wed May 22 18:16:33 PDT 2013


On Tuesday, 21 May 2013 at 07:47:56 UTC, eles wrote:
> On Tuesday, 21 May 2013 at 06:41:24 UTC, Jacob Carlborg wrote:
>> On 2013-05-20 07:25, Tyler Jameson Little wrote:
>> Here we go again, yet another massive thread about GUI 
>> toolkits :)
>
> Anyway, the thread is already started, I think the alternatives 
> are:
>
> 1) pick up a major well-known GUI library, fork it and spend 
> some important time to re-write in D. Choices: Qt, GTK, 
> wxWindows etc.
>
> 2) pick up a lighter GUI library, while still cross-platform, 
> and re-write it in D. Spent time is less. Choices: FLTK, FOX 
> Toolkit
>
> 3) start from scratch and write something new, while still 
> having to decide if will wrap OS widgets or no.
>
> Just to be sure that you know about FOX Toolkit:
>
> http://fox-toolkit.org/goals.html

DWT is completely written in D. It is a port of a java library 
which originally contained java + jni + C++ code, which were all 
ported to D exclusively.

DWT interfaces directly with the OS in windows, and with GTK in 
linux.

So there. A native D GUI library already exists (DWT), which can 
work as a starting point for something else. Note that it is hard 
to create a GUI designer directly for SWT (because it would need 
to generate code), but a layer of declarative xml can be built on 
top, so that it is easier.

Code originally written for SWT 
http://www.eclipse.org/swt/widgets/  works with little 
modification.

I've been using DWT for some time and it seems stable for me. 
Thanks to Jacob Carlborg for maintaining it!

--jm




More information about the Digitalmars-d mailing list