view doodle/tk/palette.d @ 139:e33f37b14893 default tip

Port to 'no-more-make' https://github.com/GrahamStJack/no-more-make
author David Bryant <bagnose@gmail.com>
date Sun, 30 Sep 2012 15:41:25 +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);
}