Mercurial > projects > doodle
view doodle/tk/palette.d @ 126:89016abde9fe
Keep it building... (dmd 2.055)
author | David Bryant <bagnose@gmail.com> |
---|---|
date | Fri, 09 Sep 2011 17:17:06 +0930 |
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); }