Adam D Ruppe has done some initial work on a GUI library for D at https://github.com/adamdruppe/misc-stuff-including-D-programming-language-web-stuff/blob/master/minigui.d with backends for XWindows and MS Windows C API. Maybe you could get some input/ideas from there? /Per