This file is indexed.

/usr/share/doc/libghc-vty-doc/html/Graphics-Vty-PictureToSpans.html is in libghc-vty-doc 5.11.3-1.

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
<!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>Graphics.Vty.PictureToSpans</title><link href="ocean.css" rel="stylesheet" type="text/css" title="Ocean" /><script src="haddock-util.js" type="text/javascript"></script><script src="file:///usr/share/javascript/mathjax/MathJax.js" type="text/javascript"></script><script type="text/javascript">//<![CDATA[
window.onload = function () {pageLoad();setSynopsis("mini_Graphics-Vty-PictureToSpans.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-Vty-PictureToSpans.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">vty-5.11.3: A simple terminal UI library</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Safe Haskell</th><td>None</td></tr><tr><th>Language</th><td>Haskell2010</td></tr></table><p class="caption">Graphics.Vty.PictureToSpans</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Transforms an image into rows of operations.</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"><span class="keyword">type</span> <a href="#t:MRowOps">MRowOps</a> s = <a href="file:///usr/share/doc/libghc-vector-doc/html/Data-Vector-Mutable.html#t:MVector">MVector</a> s <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a></li><li class="src short"><span class="keyword">type</span> <a href="#t:MSpanOps">MSpanOps</a> s = <a href="file:///usr/share/doc/libghc-vector-doc/html/Data-Vector-Mutable.html#t:MVector">MVector</a> s <a href="Graphics-Vty-Span.html#t:SpanOp">SpanOp</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:BlitState">BlitState</a> = <a href="#v:BlitState">BlitState</a> {<ul class="subs"><li><a href="#v:_columnOffset">_columnOffset</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:_rowOffset">_rowOffset</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:_skipColumns">_skipColumns</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:_skipRows">_skipRows</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:_remainingColumns">_remainingColumns</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li><a href="#v:_remainingRows">_remainingRows</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li></ul>}</li><li class="src short"><a href="#v:skipRows">skipRows</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:skipColumns">skipColumns</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:rowOffset">rowOffset</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:remainingRows">remainingRows</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:remainingColumns">remainingColumns</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:columnOffset">columnOffset</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:BlitEnv">BlitEnv</a> s = <a href="#v:BlitEnv">BlitEnv</a> {<ul class="subs"><li><a href="#v:_region">_region</a> :: <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a></li><li><a href="#v:_mrowOps">_mrowOps</a> :: <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s</li></ul>}</li><li class="src short"><a href="#v:region">region</a> :: <span class="keyword">forall</span> s. <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a></li><li class="src short"><a href="#v:mrowOps">mrowOps</a> :: <span class="keyword">forall</span> s s. <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s)</li><li class="src short"><span class="keyword">type</span> <a href="#t:BlitM">BlitM</a> s a = <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s)) a</li><li class="src short"><a href="#v:displayOpsForPic">displayOpsForPic</a> :: <a href="Graphics-Vty-Picture.html#t:Picture">Picture</a> -&gt; <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="Graphics-Vty-Span.html#t:DisplayOps">DisplayOps</a></li><li class="src short"><a href="#v:displayOpsForImage">displayOpsForImage</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-Span.html#t:DisplayOps">DisplayOps</a></li><li class="src short"><a href="#v:combinedOpsForLayers">combinedOpsForLayers</a> :: <a href="Graphics-Vty-Picture.html#t:Picture">Picture</a> -&gt; <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s)</li><li class="src short"><a href="#v:substituteSkips">substituteSkips</a> :: <a href="Graphics-Vty-Picture.html#t:Background">Background</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s)</li><li class="src short"><a href="#v:mergeUnder">mergeUnder</a> :: <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s)</li><li class="src short"><a href="#v:mergeRowUnder">mergeRowUnder</a> :: <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a></li><li class="src short"><a href="#v:swapSkipsForSingleColumnCharSpan">swapSkipsForSingleColumnCharSpan</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> -&gt; <a href="Graphics-Vty-Attributes.html#t:Attr">Attr</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a></li><li class="src short"><a href="#v:swapSkipsForCharSpan">swapSkipsForCharSpan</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> -&gt; <a href="Graphics-Vty-Attributes.html#t:Attr">Attr</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a></li><li class="src short"><a href="#v:buildSpans">buildSpans</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s)</li><li class="src short"><a href="#v:startImageBuild">startImageBuild</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s ()</li><li class="src short"><a href="#v:isOutOfBounds">isOutOfBounds</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:addMaybeClipped">addMaybeClipped</a> :: <span class="keyword">forall</span> s. <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s ()</li><li class="src short"><a href="#v:addMaybeClippedJoin">addMaybeClippedJoin</a> :: <span class="keyword">forall</span> s. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s ()</li><li class="src short"><a href="#v:addUnclippedText">addUnclippedText</a> :: <a href="Graphics-Vty-Attributes.html#t:Attr">Attr</a> -&gt; <a href="Graphics-Vty-Image.html#t:DisplayText">DisplayText</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s ()</li><li class="src short"><a href="#v:addRowCompletion">addRowCompletion</a> :: <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s ()</li><li class="src short"><a href="#v:snocOp">snocOp</a> :: <a href="Graphics-Vty-Span.html#t:SpanOp">SpanOp</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s ()</li><li class="src short"><a href="#v:-45--126-">(-~)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:ASetter">ASetter</a> s t a a -&gt; a -&gt; s -&gt; t</li><li class="src short"><a href="#v:-43--126-">(+~)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:ASetter">ASetter</a> s t a a -&gt; a -&gt; s -&gt; t</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:MRowOps" class="def">MRowOps</a> s = <a href="file:///usr/share/doc/libghc-vector-doc/html/Data-Vector-Mutable.html#t:MVector">MVector</a> s <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> <a href="src/Graphics-Vty-PictureToSpans.html#MRowOps" class="link">Source</a> <a href="#t:MRowOps" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:MSpanOps" class="def">MSpanOps</a> s = <a href="file:///usr/share/doc/libghc-vector-doc/html/Data-Vector-Mutable.html#t:MVector">MVector</a> s <a href="Graphics-Vty-Span.html#t:SpanOp">SpanOp</a> <a href="src/Graphics-Vty-PictureToSpans.html#MSpanOps" class="link">Source</a> <a href="#t:MSpanOps" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:BlitState" class="def">BlitState</a> <a href="src/Graphics-Vty-PictureToSpans.html#BlitState" class="link">Source</a> <a href="#t:BlitState" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:BlitState" class="def">BlitState</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:_columnOffset" class="def">_columnOffset</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:_rowOffset" class="def">_rowOffset</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:_skipColumns" class="def">_skipColumns</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:_skipRows" class="def">_skipRows</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:_remainingColumns" class="def">_remainingColumns</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:_remainingRows" class="def">_remainingRows</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a></dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:skipRows" class="def">skipRows</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-70" class="link">Source</a> <a href="#v:skipRows" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:skipColumns" class="def">skipColumns</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-70" class="link">Source</a> <a href="#v:skipColumns" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:rowOffset" class="def">rowOffset</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-70" class="link">Source</a> <a href="#v:rowOffset" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:remainingRows" class="def">remainingRows</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-70" class="link">Source</a> <a href="#v:remainingRows" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:remainingColumns" class="def">remainingColumns</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-70" class="link">Source</a> <a href="#v:remainingColumns" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:columnOffset" class="def">columnOffset</a> :: <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-70" class="link">Source</a> <a href="#v:columnOffset" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">data</span> <a id="t:BlitEnv" class="def">BlitEnv</a> s <a href="src/Graphics-Vty-PictureToSpans.html#BlitEnv" class="link">Source</a> <a href="#t:BlitEnv" class="selflink">#</a></p><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a id="v:BlitEnv" class="def">BlitEnv</a></td><td class="doc empty">&nbsp;</td></tr><tr><td colspan="2"><div class="subs fields"><p class="caption">Fields</p><ul><li><dfn class="src"><a id="v:_region" class="def">_region</a> :: <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a></dfn><div class="doc empty">&nbsp;</div></li><li><dfn class="src"><a id="v:_mrowOps" class="def">_mrowOps</a> :: <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s</dfn><div class="doc empty">&nbsp;</div></li></ul></div></td></tr></table></div></div><div class="top"><p class="src"><a id="v:region" class="def">region</a> :: <span class="keyword">forall</span> s. <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens-39-">Lens'</a> (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> <a href="src/Graphics-Vty-PictureToSpans.html#line-77" class="link">Source</a> <a href="#v:region" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mrowOps" class="def">mrowOps</a> :: <span class="keyword">forall</span> s s. <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) <a href="src/Graphics-Vty-PictureToSpans.html#line-77" class="link">Source</a> <a href="#v:mrowOps" class="selflink">#</a></p></div><div class="top"><p class="src"><span class="keyword">type</span> <a id="t:BlitM" class="def">BlitM</a> s a = <a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-Reader.html#t:ReaderT">ReaderT</a> (<a href="Graphics-Vty-PictureToSpans.html#t:BlitEnv">BlitEnv</a> s) (<a href="file:///usr/share/doc/libghc-mtl-doc/html/Control-Monad-State-Strict.html#t:StateT">StateT</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> (<a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s)) a <a href="src/Graphics-Vty-PictureToSpans.html#BlitM" class="link">Source</a> <a href="#t:BlitM" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:displayOpsForPic" class="def">displayOpsForPic</a> :: <a href="Graphics-Vty-Picture.html#t:Picture">Picture</a> -&gt; <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="Graphics-Vty-Span.html#t:DisplayOps">DisplayOps</a> <a href="src/Graphics-Vty-PictureToSpans.html#displayOpsForPic" class="link">Source</a> <a href="#v:displayOpsForPic" class="selflink">#</a></p><div class="doc"><p>Produces the span ops that will render the given picture, possibly cropped or padded, into the
 specified region.</p></div></div><div class="top"><p class="src"><a id="v:displayOpsForImage" class="def">displayOpsForImage</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-Span.html#t:DisplayOps">DisplayOps</a> <a href="src/Graphics-Vty-PictureToSpans.html#displayOpsForImage" class="link">Source</a> <a href="#v:displayOpsForImage" class="selflink">#</a></p><div class="doc"><p>Returns the DisplayOps for an image rendered to a window the size of the image.</p><p>largerly used only for debugging.</p></div></div><div class="top"><p class="src"><a id="v:combinedOpsForLayers" class="def">combinedOpsForLayers</a> :: <a href="Graphics-Vty-Picture.html#t:Picture">Picture</a> -&gt; <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) <a href="src/Graphics-Vty-PictureToSpans.html#combinedOpsForLayers" class="link">Source</a> <a href="#v:combinedOpsForLayers" class="selflink">#</a></p><div class="doc"><p>Produces the span ops for each layer then combines them.</p><p>TODO: a fold over a builder function. start with span ops that are a bg fill of the entire
 region.</p></div></div><div class="top"><p class="src"><a id="v:substituteSkips" class="def">substituteSkips</a> :: <a href="Graphics-Vty-Picture.html#t:Background">Background</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) <a href="src/Graphics-Vty-PictureToSpans.html#substituteSkips" class="link">Source</a> <a href="#v:substituteSkips" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mergeUnder" class="def">mergeUnder</a> :: <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) <a href="src/Graphics-Vty-PictureToSpans.html#mergeUnder" class="link">Source</a> <a href="#v:mergeUnder" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:mergeRowUnder" class="def">mergeRowUnder</a> :: <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> <a href="src/Graphics-Vty-PictureToSpans.html#mergeRowUnder" class="link">Source</a> <a href="#v:mergeRowUnder" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:swapSkipsForSingleColumnCharSpan" class="def">swapSkipsForSingleColumnCharSpan</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> -&gt; <a href="Graphics-Vty-Attributes.html#t:Attr">Attr</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> <a href="src/Graphics-Vty-PictureToSpans.html#swapSkipsForSingleColumnCharSpan" class="link">Source</a> <a href="#v:swapSkipsForSingleColumnCharSpan" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:swapSkipsForCharSpan" class="def">swapSkipsForCharSpan</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Char.html#t:Char">Char</a> -&gt; <a href="Graphics-Vty-Attributes.html#t:Attr">Attr</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> -&gt; <a href="Graphics-Vty-Span.html#t:SpanOps">SpanOps</a> <a href="src/Graphics-Vty-PictureToSpans.html#swapSkipsForCharSpan" class="link">Source</a> <a href="#v:swapSkipsForCharSpan" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:buildSpans" class="def">buildSpans</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Control-Monad-ST.html#t:ST">ST</a> s (<a href="Graphics-Vty-PictureToSpans.html#t:MRowOps">MRowOps</a> s) <a href="src/Graphics-Vty-PictureToSpans.html#buildSpans" class="link">Source</a> <a href="#v:buildSpans" class="selflink">#</a></p><div class="doc"><p>Builds a vector of row operations that will output the given picture to the terminal.</p><p>Crops to the given display region.</p><p>todo I'm pretty sure there is an algorithm that does not require a mutable buffer.</p></div></div><div class="top"><p class="src"><a id="v:startImageBuild" class="def">startImageBuild</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s () <a href="src/Graphics-Vty-PictureToSpans.html#startImageBuild" class="link">Source</a> <a href="#v:startImageBuild" class="selflink">#</a></p><div class="doc"><p>Add the operations required to build a given image to the current set of row operations.</p></div></div><div class="top"><p class="src"><a id="v:isOutOfBounds" class="def">isOutOfBounds</a> :: <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Bool.html#t:Bool">Bool</a> <a href="src/Graphics-Vty-PictureToSpans.html#isOutOfBounds" class="link">Source</a> <a href="#v:isOutOfBounds" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:addMaybeClipped" class="def">addMaybeClipped</a> :: <span class="keyword">forall</span> s. <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s () <a href="src/Graphics-Vty-PictureToSpans.html#addMaybeClipped" class="link">Source</a> <a href="#v:addMaybeClipped" class="selflink">#</a></p><div class="doc"><p>This adds an image that might be partially clipped to the output ops.</p><p>This is a very touchy algorithm. Too touchy. For instance, the CropRight and CropBottom
 implementations are odd. They pass the current tests but something seems terribly wrong about all
 this.</p><p>todo prove this cannot be called in an out of bounds case.</p></div></div><div class="top"><p class="src"><a id="v:addMaybeClippedJoin" class="def">addMaybeClippedJoin</a> :: <span class="keyword">forall</span> s. <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-String.html#t:String">String</a> -&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:Lens">Lens</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="Graphics-Vty-PictureToSpans.html#t:BlitState">BlitState</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="Graphics-Vty-Image.html#t:Image">Image</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s () <a href="src/Graphics-Vty-PictureToSpans.html#addMaybeClippedJoin" class="link">Source</a> <a href="#v:addMaybeClippedJoin" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:addUnclippedText" class="def">addUnclippedText</a> :: <a href="Graphics-Vty-Attributes.html#t:Attr">Attr</a> -&gt; <a href="Graphics-Vty-Image.html#t:DisplayText">DisplayText</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s () <a href="src/Graphics-Vty-PictureToSpans.html#addUnclippedText" class="link">Source</a> <a href="#v:addUnclippedText" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:addRowCompletion" class="def">addRowCompletion</a> :: <a href="Graphics-Vty-Prelude.html#t:DisplayRegion">DisplayRegion</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s () <a href="src/Graphics-Vty-PictureToSpans.html#addRowCompletion" class="link">Source</a> <a href="#v:addRowCompletion" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:snocOp" class="def">snocOp</a> :: <a href="Graphics-Vty-Span.html#t:SpanOp">SpanOp</a> -&gt; <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="Graphics-Vty-PictureToSpans.html#t:BlitM">BlitM</a> s () <a href="src/Graphics-Vty-PictureToSpans.html#snocOp" class="link">Source</a> <a href="#v:snocOp" class="selflink">#</a></p><div class="doc"><p>snocs the operation to the operations for the given row.</p></div></div><div class="top"><p class="src"><a id="v:-45--126-" class="def">(-~)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:ASetter">ASetter</a> s t a a -&gt; a -&gt; s -&gt; t <a href="src/Graphics-Vty-PictureToSpans.html#-~" class="link">Source</a> <a href="#v:-45--126-" class="selflink">#</a></p></div><div class="top"><p class="src"><a id="v:-43--126-" class="def">(+~)</a> :: <a href="file:///usr/share/doc/ghc-doc/html/libraries/base-4.9.0.0/Prelude.html#t:Num">Num</a> a =&gt; <a href="file:///usr/share/doc/libghc-microlens-doc/html/Lens-Micro-Type.html#t:ASetter">ASetter</a> s t a a -&gt; a -&gt; s -&gt; t <a href="src/Graphics-Vty-PictureToSpans.html#%2B~" class="link">Source</a> <a href="#v:-43--126-" class="selflink">#</a></p></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.17.2</p></div></body></html>