Mercurial > projects > doodle
view doodle/tk/palette.d @ 101:523269b36711
Update to dmd 2.050
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Thu, 28 Oct 2010 16:35:11 +1030 |
parents | 08ffc44fc21a |
children |
line wrap: on
line source
module doodle.tk.palette; // XXX Not sure whether to use delegates or observer pattern... interface IPalette(T) { struct Item { string iconPath; string labelText; string tooltipText; T t; }; alias void delegate(T) Callback; void configure(Item[] items, Callback callback); void activate(T t); }