MenuItem.add

Undocumented in source. Be warned that the author may not have intended to support it.
  1. MenuItem add(string s, void delegate() onclick)
  2. MenuItem add(StockID id, void delegate() onclick)
    class MenuItem
    add
    (
    StockID id
    ,
    void delegate
    ()
    onclick = null
    )
  3. MenuItem add(string s, StockID id, void delegate() onclick)

Meta