changeset 36:f0cac58ac62b

added helloworld, certainly not yet compiling/working
author Frank Benoit <benoit@tionex.de>
date Thu, 10 Jan 2008 05:01:46 +0100
parents 3a3e3aa76b66
children c86fc3d50cfa
files helloworld.d
diffstat 1 files changed, 21 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/helloworld.d	Thu Jan 10 05:01:46 2008 +0100
@@ -0,0 +1,21 @@
+module helloworld;
+
+import dwt.SWT;
+import dwt.widgets.Display;
+import dwt.widgets.Shell;
+
+void main(){
+    Display display;
+    Shell shell;
+
+    display = new Display();
+    shell = new Shell(display);
+    shell.setText("Simple SWT Sample");
+    shell.open();
+    while (!shell.isDisposed()) {
+        if (!display.readAndDispatch()) {
+            display.sleep();
+        }
+    }
+}
+