popupMenuF :: (Graphic b1, Eq b1) => [(a, b1)] -> F c b2 -> F ([(a, b1)] ⊕ c) (a ⊕ b2)
popupMenuF alts fudget
popupMenuFprovides a popup menu. The menu is normally hidden, but pops up when the a specific mouse button is pressed over the fudget to which the popup menu is attached, so that an item can be picked from the menu. The menu is removed as soon as the mouse button is released.
Left altscauses the current menu to be replaced by a new list of alternatives
yto be passed to the argument fudget.
Left xis output if menu item
Right yis output if the argument fudget outputs
alts :: [(a, b1)]
fudget :: F c b2
Left xinput may change.