This file is indexed.

/usr/share/doc/libghc-diagrams-gtk-doc/html/Diagrams-Backend-Gtk.html is in libghc-diagrams-gtk-doc 1.3-2build1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>Diagrams.Backend.Gtk</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Diagrams-Backend-Gtk.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Diagrams-Backend-Gtk.html">Source</a></li><li><a href="index.html">Contents</a></li><li><a href="doc-index.html">Index</a></li></ul><p class="caption">diagrams-gtk-1.3: Backend for rendering diagrams directly to GTK windows</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Copyright</th><td>(c) 2011 Diagrams-cairo team (see LICENSE)</td></tr><tr><th>License</th><td>BSD-style (see LICENSE)</td></tr><tr><th>Maintainer</th><td>diagrams-discuss@googlegroups.com</td></tr><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Diagrams.Backend.Gtk</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Convenient interface to rendering diagrams directly
 on Gtk widgets using the Cairo backend.</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><a href="#v:defaultRender">defaultRender</a> :: Monoid' m =&gt; <a href="file:///usr/share/doc/libghc-gtk-doc/html/Graphics-UI-Gtk-Misc-DrawingArea.html#t:DrawingArea">DrawingArea</a> -&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li><li class="src short"><a href="#v:toGtkCoords">toGtkCoords</a> :: Monoid' m =&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m -&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m</li><li class="src short"><a href="#v:renderToGtk">renderToGtk</a> :: (<a href="file:///usr/share/doc/libghc-gtk-doc/html/Graphics-UI-Gtk-Gdk-Drawable.html#t:DrawableClass">DrawableClass</a> dc, Monoid' m) =&gt; dc -&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><a name="v:defaultRender" class="def">defaultRender</a> :: Monoid' m =&gt; <a href="file:///usr/share/doc/libghc-gtk-doc/html/Graphics-UI-Gtk-Misc-DrawingArea.html#t:DrawingArea">DrawingArea</a> -&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> () <a href="src/Diagrams-Backend-Gtk.html#defaultRender" class="link">Source</a></p><div class="doc"><p>Render a diagram to a DrawingArea with double buffering,
   rescaling to fit the full area.</p></div></div><div class="top"><p class="src"><a name="v:toGtkCoords" class="def">toGtkCoords</a> :: Monoid' m =&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m -&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m <a href="src/Diagrams-Backend-Gtk.html#toGtkCoords" class="link">Source</a></p><div class="doc"><p>Convert a Diagram to the backend coordinates.</p><p>Provided to Query the diagram with coordinates from a mouse click
 event.</p><pre>widget `on` buttonPressEvent $ tryEvent $ do
  click &lt;- eventClick
  (x,y) &lt;- eventCoordinates
  let result = runQuery (query $ toGtkCoords myDiagram) (x ^&amp; y)
  do_something_with result</pre><p><code><a href="Diagrams-Backend-Gtk.html#v:toGtkCoords">toGtkCoords</a></code> does no rescaling of the diagram, however it is centered in
 the window.</p></div></div><div class="top"><p class="src"><a name="v:renderToGtk" class="def">renderToGtk</a> <a href="src/Diagrams-Backend-Gtk.html#renderToGtk" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="file:///usr/share/doc/libghc-gtk-doc/html/Graphics-UI-Gtk-Gdk-Drawable.html#t:DrawableClass">DrawableClass</a> dc, Monoid' m)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; dc</td><td class="doc"><p>widget to render onto</p></td></tr><tr><td class="src">-&gt; QDiagram <a href="file:///usr/share/doc/libghc-diagrams-cairo-doc/html/Diagrams-Backend-Cairo-Internal.html#t:Cairo">Cairo</a> <a href="file:///usr/share/doc/libghc-diagrams-lib-doc/html/Diagrams-TwoD-Types.html#t:V2">V2</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/Prelude.html#t:Double">Double</a> m</td><td class="doc"><p>Diagram</p></td></tr><tr><td class="src">-&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.8.2.0/System-IO.html#t:IO">IO</a> ()</td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Render a diagram to a <code><a href="file:///usr/share/doc/libghc-gtk-doc/html/Graphics-UI-Gtk-Gdk-Drawable.html#t:DrawableClass">DrawableClass</a></code> with double buffering.  No
   rescaling or transformations will be performed.</p><p>Typically the diagram will already have been transformed by
   <code><a href="Diagrams-Backend-Gtk.html#v:toGtkCoords">toGtkCoords</a></code>.</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.16.1</p></div></body></html>