diff tool.d @ 17:c643c04e3f5e

Checkpoint
author David Bryant <daveb@acres.com.au>
date Mon, 13 Jul 2009 16:46:21 +0930
parents 9e63308b749c
children df8d81d9f499
line wrap: on
line diff
--- a/tool.d	Mon Jul 13 16:16:17 2009 +0930
+++ b/tool.d	Mon Jul 13 16:46:21 2009 +0930
@@ -1,6 +1,7 @@
 module tool;
 
 public {
+    import cairo_support;
     import icanvas;
     import tk.events;
 }
@@ -15,6 +16,13 @@
 
 abstract class Tool {
     /*
+    enum Response {
+    START, CONTINUE, FINISH
+
+    }
+    */
+
+    /*
     abstract bool is_sticky();
     abstract bool is_replaceable();
     */
@@ -24,7 +32,8 @@
     abstract void stop(IToolStack tool_stack);
     */
 
-    //void draw(const Viewport viewport, in Rectangle damage, Context model_cr, Context pixel_cr) const;
+    void draw(const Viewport viewport, in Rectangle damage, Context model_cr, Context pixel_cr) const {
+    }
 
     bool handle_button_press(Viewport viewport, in ButtonEvent event);
     bool handle_button_release(Viewport viewport, in ButtonEvent event);