Mercurial > projects > doodle
annotate doodle/tk/palette.d @ 61:08ffc44fc21a
More palette work.
author | daveb |
---|---|
date | Wed, 11 Aug 2010 15:07:58 +0930 |
parents | b190a9d9352e |
children |
rev | line source |
---|---|
51 | 1 module doodle.tk.palette; |
2 | |
56 | 3 // XXX Not sure whether to use delegates or observer pattern... |
4 | |
61 | 5 interface IPalette(T) { |
54 | 6 struct Item { |
7 string iconPath; | |
56 | 8 string labelText; |
54 | 9 string tooltipText; |
61 | 10 T t; |
11 }; | |
54 | 12 |
61 | 13 alias void delegate(T) Callback; |
14 | |
15 void configure(Item[] items, Callback callback); | |
16 void activate(T t); | |
51 | 17 } |