Mercurial > projects > doodle
diff 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 diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tool.d Fri Jul 10 15:15:27 2009 +0930 @@ -0,0 +1,20 @@ +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); +} +