411 REFERENCE · Wikibooks
D Programming/DUI
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
To be completed.
Duit (formerly DUI; now GtkD) is a D language graphical user interface wrapping (or binding) GTK+ graphical toolkit
GtkD is released under the LGPL license.
GtkD Code Example
import gtk.MainWindow;
import gtk.Label;
import gtk.Main;
void main( string[] args )
{
Main.init(args);
MainWindow win = new MainWindow("Hello World");
win.setDefaultSize(200, 100);
win.add(new Label("Hello World"));
win.showAll();
Main.run(); // here was Main.main(), which was wrong
}
Its main website is:
http://gtkd.org/
Older out-of-date websites are
http://www.dsource.org/projects/gtkd
http://dui.sourceforge.net/