Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cross platform GUI Programming with D

I want to start programming with D. I have a simple application in mind that needs a GUI but I want to make sure it's portable to Linux/Windows/Mac equally well and with minimal (no) change for each platform.

wxD is looking like the contender of choice because I know the wx toolkit already.

I see fltk4d as a contender and a (unfinished) wrapper around Qt.

Are there any other truly cross platform GUI toolkits for D that will go where I want with little effort and what would the the toolkit of choice for people here?

like image 578
Adam Hawes Avatar asked Mar 29 '09 02:03

Adam Hawes


2 Answers

GtkD should be a very good option for you as a stable Windows/Linux/Mac GUI toolkit.

DWT was once considered the standard, it has its own newsgroup on the Digital Mars server and I think Walter Bright may have called it the standard too. I don't think it's completely working on Mac but this should change in the future.

Here is a nice list of some other options but most have less active development and/or are not yet ready for production.

like image 196
Tim Matthews Avatar answered Oct 05 '22 14:10

Tim Matthews


I have not used any of D's GUI libraries, but I would go with wxD if I wanted to use one now. I would pick it because I think wxD would have the most native looking controls and is cross-platform. Especially since you already know wx, it looks like a good choice.

I'm actually writing a cross-platform GUI library, Dynamin, but I have not released it yet. It is not a port; ported libraries tend to not have as nice of APIs or take advantage of as many language features. But it is not far enough along to do more than simple programs. I also don't have a Mac backend or GTK theme yet.

like image 41
Jordan Miner Avatar answered Oct 05 '22 14:10

Jordan Miner