view tool.d @ 2:d6f44347373d

* Switched over to geometry done with structs instead of classes. * Removed direct access to gtk structs * Refactoring
author David Bryant <daveb@acres.com.au>
date Fri, 10 Jul 2009 15:15:27 +0930
parents
children 936feb16eed4
line wrap: on
line source

module tool;

import icanvas;

interface IToolStack {
    void push(Tool tool);
    void pop();
    void replace(Tool tool);
}

abstract class Tool : ICanvasEventHandler {
    /*
    abstract bool is_sticky();
    abstract bool is_replaceable();
    */

    abstract void start(IToolStack tool_stack);
    abstract void stop(IToolStack tool_stack);
}