Mercurial > projects > doodle
comparison gui.d @ 0:e907d2c54ec3
Initial import
author | David Bryant <daveb@acres.com.au> |
---|---|
date | Wed, 13 May 2009 15:42:39 +0930 |
parents | |
children | c18e3f93d114 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e907d2c54ec3 |
---|---|
1 module gui; | |
2 | |
3 import canvas; | |
4 import handler; | |
5 | |
6 import gtk.Main; | |
7 import gtk.MainWindow; | |
8 | |
9 import tk.geometry; | |
10 import tk.types; | |
11 import tk.events; | |
12 | |
13 void main(string[] args) { | |
14 Main.init(args); | |
15 auto window = new MainWindow("Title"); | |
16 auto event_handler = new ToolStack(); | |
17 auto canvas = new Canvas(event_handler); | |
18 window.add(canvas); | |
19 window.showAll(); | |
20 Main.run(); | |
21 } |