view 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
line wrap: on
line source

module doodle.tk.palette;

// XXX Not sure whether to use delegates or observer pattern...

interface IPalette {
    struct Item {
        string iconPath;
        string labelText;
        string tooltipText;
        void delegate(int) callback;
    }

    void configure(in Item[] items);
    void activate(in int index);
}