Menu —
A Menu is a vertically aligned set of options that can be selected. There are two kinds: Those that are part of a MenuBar and those that appear as a context menu (within the work space).
menuNew:: IO Menu |
menuPopup:: MenuClass m => m -> Event -> IO () |
menuReorderChild:: (MenuClass m, MenuItemClass mi) => m -> mi -> Int -> IO () |
The following not bound functions might be useful: menuSetAccelGroup, menuSetAccelGroup, menuReposition
The function menuPopup at a specific position is difficult to bind: The callback function that determines at which position the menu is to be shown is keept after the call returns. Maybe we could destroy this function pointer with a destory event?