Mercurial > projects > doodle
comparison 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 |
comparison
equal
deleted
inserted
replaced
55:4922e746dd76 | 56:b190a9d9352e |
---|---|
1 module doodle.tk.palette; | 1 module doodle.tk.palette; |
2 | |
3 // XXX Not sure whether to use delegates or observer pattern... | |
2 | 4 |
3 interface IPalette { | 5 interface IPalette { |
4 struct Item { | 6 struct Item { |
5 string iconPath; | 7 string iconPath; |
8 string labelText; | |
6 string tooltipText; | 9 string tooltipText; |
7 void delegate(int) callback; | 10 void delegate(int) callback; |
8 } | 11 } |
9 | 12 |
10 void configure(in Item[] items); | 13 void configure(in Item[] items); |