HelloWorld.d example of DUI code


DUI
D GTK+ binding

Welcome

What is DUI
Screenshots
sourceforge Page
Contacts

Downloads

DUI Windows
DUI Linux

Developers

Windows Tools
dool Impact
Tutorial
Diffs to GTK
Events
Class Hierarchy
Class Index
Class List
OpenGL

To do

roadmap
To do
Known Problems

Links

Site pages
Links
Acknowledgments

HelloWorld_OLD.png

module hw.HelloWorld;

private import dui.All;

class HelloWorld : MainWindow
{

    this()
    {
        super("DUI Hello World");
        setBorderWidth(10);
        add(new Label("Hello World"));
        show();
    }   
}
 
void main(char[][] args)
{
    DUI dui = DUI.dui(args);    // inits DUI
    new HelloWorld();
    dui.go();                   // starts the event main loop
}

SourceForge.net Logo DSource.org Logo digitalmars.com Logo