Versions in this module Expand all Collapse all v0 v0.2.1 Oct 25, 2014 v0.1.0 Oct 18, 2014 Changes in this version + type ChildCommand struct + Child *Menu + Command *commands.Command + type Item interface + Handle func() + IsCommandId func() bool + IsSubMenu func() bool + type Menu struct + Children []*Menu + CommandQueue []*Command + Displayed bool + EventRegistry []uint + Items []*MenuItem + Parent *Menu + Ready bool + ReplyHandlers map[uint]func(reply CommandResponse, item *MenuItem) + SendChannel *connection.In + Sync MenuSync + TargetID uint + WaitingResponses []*Command + func (menu *Menu) AddCheckItem(commandID uint, label string) + func (menu *Menu) AddItem(commandID uint, label string) + func (menu *Menu) AddRadioItem(commandID uint, label string, groupID uint) + func (menu *Menu) AddSeparator() + func (menu *Menu) AddSubmenu(commandID uint, label string, child *Menu) + func (menu *Menu) AttachToWindow(w *window.Window) + func (menu *Menu) Call(command *Command) + func (menu *Menu) CallWhenChildStable(command *Command, child *Menu) + func (menu *Menu) CallWhenDisplayed(command *Command) + func (menu *Menu) CallWhenReady(command *Command) + func (menu *Menu) CallWhenTreeStable(command *Command) + func (menu *Menu) Create(sendChannel *connection.In) + func (menu *Menu) DispatchResponse(reply CommandResponse) + func (menu *Menu) HandleError(reply CommandResponse) + func (menu *Menu) HandleEvent(reply CommandResponse) + func (menu *Menu) HandleReply(reply CommandResponse) + func (menu *Menu) IsStable() bool + func (menu *Menu) IsTarget(targetId uint) bool + func (menu *Menu) IsTreeStable() bool + func (menu *Menu) ItemAtCommandID(commandID uint) *MenuItem + func (menu *Menu) RadioGroupAtGroupID(groupID uint) []*MenuItem + func (menu *Menu) RegisterEventHandlerByCommandID(commandID uint, handler func(reply CommandResponse, item *MenuItem)) + func (menu *Menu) Send(command *Command) + func (menu *Menu) SendThread() + func (menu *Menu) SetApplicationMenu() + func (menu *Menu) SetChecked(commandID uint, checked bool) + func (menu *Menu) SetEnabled(commandID uint, enabled bool) + func (menu *Menu) SetSendChannel(sendChannel *connection.In) + func (menu *Menu) SetVisible(commandID uint, visible bool) + func (menu *Menu) ToggleRadio(commandID, groupID uint, checked bool) + func (menu Menu) PrintRecursiveWaitingResponses() + type MenuItem struct + Checked bool + CommandID uint + Enabled bool + GroupID uint + Label string + Parent *Menu + SubMenu *Menu + Type string + Visible bool + func (mi MenuItem) HandleEvent() + func (mi MenuItem) IsCheckItem() bool + func (mi MenuItem) IsCommandID(commandID uint) bool + func (mi MenuItem) IsGroupID(groupID uint) bool + func (mi MenuItem) IsRadioItem() bool + func (mi MenuItem) IsSubMenu() bool + type MenuSync struct + ChildStableChan chan uint + ChildStableQueue []*ChildCommand + DisplayedChan chan bool + DisplayedQueue []*commands.Command + QuitChan chan bool + ReadyChan chan bool + ReadyQueue []*commands.Command + TreeStableChan chan bool + TreeStableQueue []*commands.Command