<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"><head><metahttp-equiv="Content-Type"content="text/html; charset=UTF-8"/><title>HSFM.GUI.Gtk.Plugins</title><linkhref="ocean.css"rel="stylesheet"type="text/css"title="Ocean"/><scriptsrc="haddock-util.js"type="text/javascript"></script><scriptsrc="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"type="text/javascript"></script><scripttype="text/javascript">//<![CDATA[
</script></head><body><divid="package-header"><ulclass="links"id="page-menu"><li><ahref="src/HSFM-GUI-Gtk-Plugins.html">Source</a></li><li><ahref="index.html">Contents</a></li><li><ahref="doc-index.html">Index</a></li></ul><pclass="caption">hsfm-gtk</p></div><divid="content"><divid="module-header"><tableclass="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><pclass="caption">HSFM.GUI.Gtk.Plugins</p></div><divid="synopsis"><pid="control.syn"class="caption expander"onclick="toggleSection('syn')">Synopsis</p><ulid="section.syn"class="hide"onclick="toggleSection('syn')"><liclass="src short"><ahref="#v:insertPos">insertPos</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int">Int</a></li><liclass="src short"><ahref="#v:myplugins">myplugins</a> :: [(<ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> MenuItem, [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Bool.html#t:Bool">Bool</a>, [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> ())]</li><liclass="src short"><ahref="#v:diffItem">diffItem</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> MenuItem</li><liclass="src short"><ahref="#v:diffFilter">diffFilter</a> :: [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Bool.html#t:Bool">Bool</a></li><liclass="src short"><ahref="#v:diffCallback">diffCallback</a> :: [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> ()</li></ul></div><divid="interface"><h1>Documentation</h1><divclass="top"><pclass="src"><aid="v:insertPos"class="def">insertPos</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Int.html#t:Int">Int</a><ahref="src/HSFM-GUI-Gtk-Plugins.html#insertPos"class="link">Source</a><ahref="#v:insertPos"class="selflink">#</a></p><divclass="doc"><p>Where to start inserting plugins.</p></div></div><divclass="top"><pclass="src"><aid="v:myplugins"class="def">myplugins</a> :: [(<ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> MenuItem, [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Bool.html#t:Bool">Bool</a>, [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> ())] <ahref="src/HSFM-GUI-Gtk-Plugins.html#myplugins"class="link">Source</a><ahref="#v:myplugins"class="selflink">#</a></p><divclass="doc"><p>A list of plugins to add to the right-click menu at position
<code><ahref="HSFM-GUI-Gtk-Plugins.html#v:insertPos">insertPos</a></code>.</p><p>The left part of the triple is 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.</p><p>Plugins are added in order of this list.</p></div></div><divclass="top"><pclass="src"><aid="v:diffItem"class="def">diffItem</a> :: <ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> MenuItem <ahref="src/HSFM-GUI-Gtk-Plugins.html#diffItem"class="link">Source</a><ahref="#v:diffItem"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:diffFilter"class="def">diffFilter</a> :: [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/Data-Bool.html#t:Bool">Bool</a><ahref="src/HSFM-GUI-Gtk-Plugins.html#diffFilter"class="link">Source</a><ahref="#v:diffFilter"class="selflink">#</a></p></div><divclass="top"><pclass="src"><aid="v:diffCallback"class="def">diffCallback</a> :: [<ahref="HSFM-GUI-Gtk-Data.html#t:Item">Item</a>] -><ahref="HSFM-GUI-Gtk-Data.html#t:MyGUI">MyGUI</a> -><ahref="HSFM-GUI-Gtk-Data.html#t:MyView">MyView</a> -><ahref="https://hackage.haskell.org/package/base-4.9.0.0/docs/System-IO.html#t:IO">IO</a> () <ahref="src/HSFM-GUI-Gtk-Plugins.html#diffCallback"class="link">Source</a><ahref="#v:diffCallback"class="selflink">#</a></p></div></div></div><divid="footer"><p>Produced by <ahref="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>