Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
myplugins :: [(IO MenuItem, [Item] -> MyGUI -> MyView -> IO Bool, [Item] -> MyGUI -> MyView -> IO ())] Source
A list of plugins to add to the right-click menu at position
insertPos
.
The left part of the triple is a function that returns the menuitem. The middle part of the triple is a filter function that decides whether the item is shown. The right part of the triple is the callback, which is invoked when the menu item is clicked.
Plugins are added in order of this list.