Mercurial > projects > doodle
annotate doodle/tk/palette.d @ 56:b190a9d9352e
Checkpoint
author | "David Bryant <bagnose@gmail.com>" |
---|---|
date | Sun, 08 Aug 2010 21:56:54 +0930 |
parents | 30ecedfe2ce2 |
children | 08ffc44fc21a |
rev | line source |
---|---|
51 | 1 module doodle.tk.palette; |
2 | |
56 | 3 // XXX Not sure whether to use delegates or observer pattern... |
4 | |
51 | 5 interface IPalette { |
54 | 6 struct Item { |
7 string iconPath; | |
56 | 8 string labelText; |
54 | 9 string tooltipText; |
10 void delegate(int) callback; | |
11 } | |
12 | |
13 void configure(in Item[] items); | |
14 void activate(in int index); | |
51 | 15 } |