Mercurial > projects > doodle
diff gui.d @ 11:fb571a3b1f0d
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sat, 11 Jul 2009 23:32:22 +0930 |
parents | bf7903435f58 |
children | a093c4fbdd43 |
line wrap: on
line diff
--- a/gui.d Sat Jul 11 22:49:41 2009 +0930 +++ b/gui.d Sat Jul 11 23:32:22 2009 +0930 @@ -1,9 +1,11 @@ module gui; +import icanvas; import canvas; import tool_stack; import tool; import standard_tools; +import page_layer; import gtk.Main; import gtk.MainWindow; @@ -22,7 +24,9 @@ tools ~= new PanTool; tools ~= new ZoomTool; auto event_handler = new ToolStack(tools); - auto canvas = new Canvas(event_handler); + Layer[] layers; + layers ~= new PageLayer; + auto canvas = new Canvas(layers, event_handler, 120.0); window.add(canvas); window.setDefaultSize(420, 340); window.showAll();