D Programming/DUI

From Wikibooks, open books for an open world
Jump to: navigation, search

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[edit]

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:

Older out-of-date websites are