Mercurial > projects > doodle
comparison 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 |
comparison
equal
deleted
inserted
replaced
1:c18e3f93d114 | 2:d6f44347373d |
---|---|
1 module tool; | |
2 | |
3 import icanvas; | |
4 | |
5 interface IToolStack { | |
6 void push(Tool tool); | |
7 void pop(); | |
8 void replace(Tool tool); | |
9 } | |
10 | |
11 abstract class Tool : ICanvasEventHandler { | |
12 /* | |
13 abstract bool is_sticky(); | |
14 abstract bool is_replaceable(); | |
15 */ | |
16 | |
17 abstract void start(IToolStack tool_stack); | |
18 abstract void stop(IToolStack tool_stack); | |
19 } | |
20 |