In computer programming, GtkD is a language binding of the GTK+ widget toolkit for the D programming language. As of 2011, the latest version is 1.4.1 which wraps GTK+ 2.20. It is compatible with both D 1.0 and D 2.0, either with the Phobos or the Tango system library.[1]
Hello world in D with GtkD:
import gtk.MainWindow; import gtk.Label; import gtk.Main; void main(string[] args) { Main.init(args); MainWindow win = new MainWindow("Hello world!"); win.setDefaultSize(250, 150); win.add(new Label("Hello world!")); win.showAll(); Main.run(); }