/usr/share/doc/libghc-pango-doc/html/Graphics-Rendering-Pango-Layout.html is in libghc-pango-doc 0.12.2-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 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 | <!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.Rendering.Pango.Layout</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_Graphics-Rendering-Pango-Layout.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-Rendering-Pango-Layout.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">pango-0.12.2: Binding to the Pango text rendering engine.</p></div><div id="content"><div id="module-header"><table class="info"><tr><th>Portability</th><td>portable (depends on GHC)</td></tr><tr><th>Stability</th><td>provisional</td></tr><tr><th>Maintainer</th><td>gtk2hs-users@lists.sourceforge.net</td></tr><tr><th>Safe Haskell</th><td>Safe-Infered</td></tr></table><p class="caption">Graphics.Rendering.Pango.Layout</p></div><div id="description"><p class="caption">Description</p><div class="doc"><p>Functions to run the rendering pipeline.
</p><ul><li> The <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code> object defined in this module contain a rendered
paragraph of text. This interface is the easiest way to render text into
a <code><a href="Graphics-UI-Gtk-Gdk-DrawWindow.html#t:DrawWindow">DrawWindow</a></code> using Cairo.
</li></ul></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">data</span> <a href="#t:PangoRectangle">PangoRectangle</a> = <a href="#v:PangoRectangle">PangoRectangle</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:PangoLayout">PangoLayout</a> </li><li class="src short"><a href="#v:layoutEmpty">layoutEmpty</a> :: <a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></li><li class="src short"><a href="#v:layoutText">layoutText</a> :: <a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></li><li class="src short"><a href="#v:layoutCopy">layoutCopy</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></li><li class="src short"><a href="#v:layoutGetContext">layoutGetContext</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a></li><li class="src short"><a href="#v:layoutContextChanged">layoutContextChanged</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutSetText">layoutSetText</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetText">layoutGetText</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:layoutSetMarkup">layoutSetMarkup</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:escapeMarkup">escapeMarkup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a></li><li class="src short"><a href="#v:layoutSetMarkupWithAccel">layoutSetMarkupWithAccel</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)</li><li class="src short"><a href="#v:layoutSetAttributes">layoutSetAttributes</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> [<a href="Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetAttributes">layoutGetAttributes</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [[<a href="Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]]</li><li class="src short"><a href="#v:layoutSetFontDescription">layoutSetFontDescription</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Font.html#t:FontDescription">FontDescription</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetFontDescription">layoutGetFontDescription</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Font.html#t:FontDescription">FontDescription</a>)</li><li class="src short"><a href="#v:layoutSetWidth">layoutSetWidth</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetWidth">layoutGetWidth</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:LayoutWrapMode">LayoutWrapMode</a> <ul class="subs"><li>= <a href="#v:WrapWholeWords">WrapWholeWords</a> </li><li>| <a href="#v:WrapAnywhere">WrapAnywhere</a> </li><li>| <a href="#v:WrapPartialWords">WrapPartialWords</a> </li></ul></li><li class="src short"><a href="#v:layoutSetWrap">layoutSetWrap</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetWrap">layoutGetWrap</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:EllipsizeMode">EllipsizeMode</a> <ul class="subs"><li>= <a href="#v:EllipsizeNone">EllipsizeNone</a> </li><li>| <a href="#v:EllipsizeStart">EllipsizeStart</a> </li><li>| <a href="#v:EllipsizeMiddle">EllipsizeMiddle</a> </li><li>| <a href="#v:EllipsizeEnd">EllipsizeEnd</a> </li></ul></li><li class="src short"><a href="#v:layoutSetEllipsize">layoutSetEllipsize</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetEllipsize">layoutGetEllipsize</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a></li><li class="src short"><a href="#v:layoutSetIndent">layoutSetIndent</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetIndent">layoutGetIndent</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:layoutSetSpacing">layoutSetSpacing</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetSpacing">layoutGetSpacing</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:layoutSetJustify">layoutSetJustify</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetJustify">layoutGetJustify</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutSetAutoDir">layoutSetAutoDir</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetAutoDir">layoutGetAutoDir</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:LayoutAlignment">LayoutAlignment</a> <ul class="subs"><li>= <a href="#v:AlignLeft">AlignLeft</a> </li><li>| <a href="#v:AlignCenter">AlignCenter</a> </li><li>| <a href="#v:AlignRight">AlignRight</a> </li></ul></li><li class="src short"><a href="#v:layoutSetAlignment">layoutSetAlignment</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutAlignment">LayoutAlignment</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetAlignment">layoutGetAlignment</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutAlignment">LayoutAlignment</a></li><li class="src short"><span class="keyword">data</span> <a href="#t:TabAlign">TabAlign</a> </li><li class="src short"><span class="keyword">type</span> <a href="#t:TabPosition">TabPosition</a> = (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:TabAlign">TabAlign</a>)</li><li class="src short"><a href="#v:layoutSetTabs">layoutSetTabs</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> [<a href="Graphics-Rendering-Pango-Layout.html#t:TabPosition">TabPosition</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutResetTabs">layoutResetTabs</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetTabs">layoutGetTabs</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Graphics-Rendering-Pango-Layout.html#t:TabPosition">TabPosition</a>])</li><li class="src short"><a href="#v:layoutSetSingleParagraphMode">layoutSetSingleParagraphMode</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:layoutGetSingleParagraphMode">layoutGetSingleParagraphMode</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutXYToIndex">layoutXYToIndex</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:layoutIndexToPos">layoutIndexToPos</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a></li><li class="src short"><a href="#v:layoutGetCursorPos">layoutGetCursorPos</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:CursorPos">CursorPos</a> <ul class="subs"><li>= <a href="#v:CursorPosPrevPara">CursorPosPrevPara</a> </li><li>| <a href="#v:CursorPos">CursorPos</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> </li><li>| <a href="#v:CursorPosNextPara">CursorPosNextPara</a> </li></ul></li><li class="src short"><a href="#v:layoutMoveCursorVisually">layoutMoveCursorVisually</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:CursorPos">CursorPos</a></li><li class="src short"><a href="#v:layoutGetExtents">layoutGetExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</li><li class="src short"><a href="#v:layoutGetPixelExtents">layoutGetPixelExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>, <a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>)</li><li class="src short"><a href="#v:layoutGetLineCount">layoutGetLineCount</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:layoutGetLine">layoutGetLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></li><li class="src short"><a href="#v:layoutGetLines">layoutGetLines</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a>]</li><li class="src short"><span class="keyword">data</span> <a href="#t:LayoutIter">LayoutIter</a> </li><li class="src short"><a href="#v:layoutGetIter">layoutGetIter</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a></li><li class="src short"><a href="#v:layoutIterNextItem">layoutIterNextItem</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutIterNextChar">layoutIterNextChar</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutIterNextCluster">layoutIterNextCluster</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutIterNextLine">layoutIterNextLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutIterAtLastLine">layoutIterAtLastLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:layoutIterGetIndex">layoutIterGetIndex</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:layoutIterGetBaseline">layoutIterGetBaseline</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:layoutIterGetItem">layoutIterGetItem</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Rendering.html#t:GlyphItem">GlyphItem</a>)</li><li class="src short"><a href="#v:layoutIterGetLine">layoutIterGetLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a>)</li><li class="src short"><a href="#v:layoutIterGetCharExtents">layoutIterGetCharExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a></li><li class="src short"><a href="#v:layoutIterGetClusterExtents">layoutIterGetClusterExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</li><li class="src short"><a href="#v:layoutIterGetRunExtents">layoutIterGetRunExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</li><li class="src short"><a href="#v:layoutIterGetLineYRange">layoutIterGetLineYRange</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)</li><li class="src short"><a href="#v:layoutIterGetLineExtents">layoutIterGetLineExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</li><li class="src short"><span class="keyword">data</span> <a href="#t:LayoutLine">LayoutLine</a> </li><li class="src short"><a href="#v:layoutLineGetExtents">layoutLineGetExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</li><li class="src short"><a href="#v:layoutLineGetPixelExtents">layoutLineGetPixelExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>, <a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>)</li><li class="src short"><a href="#v:layoutLineIndexToX">layoutLineIndexToX</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:layoutLineXToIndex">layoutLineXToIndex</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:layoutLineGetXRanges">layoutLineGetXRanges</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)]</li></ul></div><div id="interface"><h1>Documentation</h1><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PangoRectangle" class="def">PangoRectangle</a> <a href="src/Graphics-Rendering-Pango-Structs.html#PangoRectangle" class="link">Source</a></p><div class="doc"><p>Rectangles describing an area in <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></code>s.
</p><ul><li> Specifies x, y, width and height
</li></ul></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:PangoRectangle" class="def">PangoRectangle</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:PangoRectangle" class="caption collapser" onclick="toggleSection('i:PangoRectangle')">Instances</p><div id="section.i:PangoRectangle" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Foreign-Storable.html#t:Storable">Storable</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:PangoLayout" class="def">PangoLayout</a> <a href="src/Graphics-Rendering-Pango-BasicTypes.html#PangoLayout" class="link">Source</a></p><div class="doc"><p>A rendered paragraph.
</p></div></div><div class="top"><p class="src"><a name="v:layoutEmpty" class="def">layoutEmpty</a> :: <a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutEmpty" class="link">Source</a></p><div class="doc"><p>Create an empty <code>Layout</code>.
</p></div></div><div class="top"><p class="src"><a name="v:layoutText" class="def">layoutText</a> :: <a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutText" class="link">Source</a></p><div class="doc"><p>Create a new layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutCopy" class="def">layoutCopy</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutCopy" class="link">Source</a></p><div class="doc"><p>Create a copy of the <code>Layout</code>.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetContext" class="def">layoutGetContext</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetContext" class="link">Source</a></p><div class="doc"><p>Retrieves the <code><a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a></code> from this layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutContextChanged" class="def">layoutContextChanged</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutContextChanged" class="link">Source</a></p><div class="doc"><p>Signal a <code><a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a></code> change.
</p><ul><li> Forces recomputation of any state in the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code> that
might depend on the layout's context. This function should
be called if you make changes to the context subsequent
to creating the layout.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetText" class="def">layoutSetText</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetText" class="link">Source</a></p><div class="doc"><p>Set the string in the layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetText" class="def">layoutGetText</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetText" class="link">Source</a></p><div class="doc"><p>Retrieve the string in the layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutSetMarkup" class="def">layoutSetMarkup</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetMarkup" class="link">Source</a></p><div class="doc"><p>Set the text of the layout, including attributes.
</p><p>The string may include <code><a href="Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a></code>. To print markup characters like
<code>'<'</code>, or <code>'-'</code>, apply <code><a href="Graphics-Rendering-Pango-Layout.html#v:escapeMarkup">escapeMarkup</a></code> to the string first.
</p><p>The function returns the text that is actually shown.
</p></div></div><div class="top"><p class="src"><a name="v:escapeMarkup" class="def">escapeMarkup</a> :: <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a><a href="src/Graphics-Rendering-Pango-Layout.html#escapeMarkup" class="link">Source</a></p><div class="doc"><p>Escape markup characters.
</p><ul><li> Used to display characters that normally denote markup. Note that this
function is strict in that it forces all characters in the input string
as soon as a single output character is requested.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetMarkupWithAccel" class="def">layoutSetMarkupWithAccel</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Char.html#t:Char">Char</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-String.html#t:String">String</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetMarkupWithAccel" class="link">Source</a></p><div class="doc"><p>Set the string in the layout.
</p><ul><li> The string may include <code><a href="Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a></code>. Furthermore, any underscore
character indicates that the next character will be
marked as accelerator (i.e. underlined). A literal underscore character
can be produced by placing it twice in the string.
</li><li> The character which follows the underscore is
returned so it can be used to add the actual keyboard shortcut.
The second element is the string after parsing.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetAttributes" class="def">layoutSetAttributes</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> [<a href="Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetAttributes" class="link">Source</a></p><div class="doc"><p>Set text attributes of the text in the layout.
</p><ul><li> This function replaces any text attributes that this layout contained,
even those that were set by using <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetMarkup">layoutSetMarkup</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetAttributes" class="def">layoutGetAttributes</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [[<a href="Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]]<a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetAttributes" class="link">Source</a></p><div class="doc"><p>Gets the list of attributes of the layout, if any.
</p><ul><li> The attribute list is a list of lists of attribute. Each list describes
the attributes for the same span.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetFontDescription" class="def">layoutSetFontDescription</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Font.html#t:FontDescription">FontDescription</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetFontDescription" class="link">Source</a></p><div class="doc"><p>Set a specific font description for this layout.
</p><ul><li> Specifying <code>Nothing</code> will unset the current font description, that is,
the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code> will use the font description in the current
<code><a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetFontDescription" class="def">layoutGetFontDescription</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Font.html#t:FontDescription">FontDescription</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetFontDescription" class="link">Source</a></p><div class="doc"><p>Ask for the specifically set font description of this layout.
</p><ul><li> Returns <code>Nothing</code> if this layout uses the font description in the
<code><a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a></code> it was created in.
</li><li> Only available in Pango 1.8.0 or higher.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetWidth" class="def">layoutSetWidth</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetWidth" class="link">Source</a></p><div class="doc"><p>Set the width of this paragraph.
</p><ul><li> Sets the width to which the lines of the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>
should be wrapped.
</li><li> Pass in <code>Nothing</code> to indicate that no wrapping is to be performed.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetWidth" class="def">layoutGetWidth</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetWidth" class="link">Source</a></p><div class="doc"><p>Gets the width of this paragraph.
</p><ul><li> Gets the width to which the lines of the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>
should be wrapped.
</li><li> Returns is the current width, or <code>Nothing</code> to indicate that
no wrapping is performed.
</li></ul></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:LayoutWrapMode" class="def">LayoutWrapMode</a> <a href="src/Graphics-Rendering-Pango-Layout.html#LayoutWrapMode" class="link">Source</a></p><div class="doc"><p>Enumerates how a line can be wrapped.
</p><dl><dt><code>WrapWholeWords</code></dt><dd> Breaks lines only between words.
</dd></dl><ul><li> This variant does not guarantee that the requested width is not
exceeded. A word that is longer than the paragraph width is not
split.
</li></ul><dl><dt><code>WrapAnywhere</code></dt><dd> Break lines anywhere.
</dd><dt><code>WrapPartialWords</code></dt><dd> Wrap within a word if it is the only one on
this line.
</dd></dl><ul><li> This option acts like <code><a href="Graphics-Rendering-Pango-Layout.html#v:WrapWholeWords">WrapWholeWords</a></code> but will split
a word if it is the only one on this line and it exceeds the
specified width.
</li></ul></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:WrapWholeWords" class="def">WrapWholeWords</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:WrapAnywhere" class="def">WrapAnywhere</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:WrapPartialWords" class="def">WrapPartialWords</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:LayoutWrapMode" class="caption collapser" onclick="toggleSection('i:LayoutWrapMode')">Instances</p><div id="section.i:LayoutWrapMode" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:layoutSetWrap" class="def">layoutSetWrap</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetWrap" class="link">Source</a></p><div class="doc"><p>Set how this paragraph is wrapped.
</p><ul><li> Sets the wrap style; the wrap style only has an effect if a width
is set on the layout with <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetWidth">layoutSetWidth</a></code>. To turn off
wrapping, call <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetWidth">layoutSetWidth</a></code> with <code>Nothing</code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetWrap" class="def">layoutGetWrap</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetWrap" class="link">Source</a></p><div class="doc"><p>Get the wrap mode for the layout.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:EllipsizeMode" class="def">EllipsizeMode</a> <a href="src/Graphics-Rendering-Pango-Enums.html#EllipsizeMode" class="link">Source</a></p><div class="doc"><p>The <code><a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a></code> type describes what sort of (if any) ellipsization
should be applied to a line of text. In the ellipsization process characters
are removed from the text in order to make it fit to a given width and
replaced with an ellipsis.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:EllipsizeNone" class="def">EllipsizeNone</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:EllipsizeStart" class="def">EllipsizeStart</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:EllipsizeMiddle" class="def">EllipsizeMiddle</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:EllipsizeEnd" class="def">EllipsizeEnd</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:EllipsizeMode" class="caption collapser" onclick="toggleSection('i:EllipsizeMode')">Instances</p><div id="section.i:EllipsizeMode" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:layoutSetEllipsize" class="def">layoutSetEllipsize</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetEllipsize" class="link">Source</a></p><div class="doc"><p>Set how long lines should be abbreviated.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetEllipsize" class="def">layoutGetEllipsize</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:EllipsizeMode">EllipsizeMode</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetEllipsize" class="link">Source</a></p><div class="doc"><p>Get the ellipsize mode for this layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutSetIndent" class="def">layoutSetIndent</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetIndent" class="link">Source</a></p><div class="doc"><p>Set the indentation of this paragraph.
</p><ul><li> Sets the amount by which the first line should
be indented. A negative value will produce a hanging indent, that is,
all subsequent lines will be indented while the first line has full
width.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetIndent" class="def">layoutGetIndent</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetIndent" class="link">Source</a></p><div class="doc"><p>Gets the indentation of this paragraph.
</p><ul><li> Gets the amount by which the first line or the rest of the paragraph
is indented.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetSpacing" class="def">layoutSetSpacing</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetSpacing" class="link">Source</a></p><div class="doc"><p>Set the spacing between lines of this paragraph.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetSpacing" class="def">layoutGetSpacing</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetSpacing" class="link">Source</a></p><div class="doc"><p>Gets the spacing between the lines.
</p></div></div><div class="top"><p class="src"><a name="v:layoutSetJustify" class="def">layoutSetJustify</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetJustify" class="link">Source</a></p><div class="doc"><p>Set if text should be streched to fit width.
</p><ul><li> Sets whether or not each complete line should be stretched to
fill the entire width of the layout. This stretching is typically
done by adding whitespace, but for some scripts (such as Arabic),
the justification is done by extending the characters.
</li><li> Note that as of Pango 1.4, this functionality is not yet implemented.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetJustify" class="def">layoutGetJustify</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetJustify" class="link">Source</a></p><div class="doc"><p>Retrieve the justification flag.
</p><ul><li> See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetJustify">layoutSetJustify</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetAutoDir" class="def">layoutSetAutoDir</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetAutoDir" class="link">Source</a></p><div class="doc"><p>Set if the base text direction should be overridden.
</p><ul><li> Sets whether to calculate the bidirectional base direction for the
layout according to the contents of the layout; when this flag is on
(the default), then paragraphs in layout that begin with strong
right-to-left characters (Arabic and Hebrew principally), will have
right-to-left layout, paragraphs with letters from other scripts will
have left-to-right layout. Paragraphs with only neutral characters get
their direction from the surrounding paragraphs.
</li><li> When <code>False</code>, the choice between left-to-right and right-to-left
layout is done by according to the base direction of the layout's
<code><a href="Graphics-Rendering-Pango-Context.html#t:PangoContext">PangoContext</a></code>. (See <code><a href="Graphics-Rendering-Pango-Context.html#v:contextSetTextDir">contextSetTextDir</a></code>).
</li><li> When the auto-computed direction or a paragraph differs from the base
direction of the context, then the interpretation of
<code><a href="Graphics-Rendering-Pango-Layout.html#v:AlignLeft">AlignLeft</a></code> and <code><a href="Graphics-Rendering-Pango-Layout.html#v:AlignRight">AlignRight</a></code> are swapped.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetAutoDir" class="def">layoutGetAutoDir</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetAutoDir" class="link">Source</a></p><div class="doc"><p>Retrieve the auto direction flag.
</p><ul><li> See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetAutoDir">layoutSetAutoDir</a></code>.
</li></ul></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:LayoutAlignment" class="def">LayoutAlignment</a> <a href="src/Graphics-Rendering-Pango-Layout.html#LayoutAlignment" class="link">Source</a></p><div class="doc"><p>Enumerate to which side incomplete lines are flushed.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:AlignLeft" class="def">AlignLeft</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:AlignCenter" class="def">AlignCenter</a></td><td class="doc empty"> </td></tr><tr><td class="src"><a name="v:AlignRight" class="def">AlignRight</a></td><td class="doc empty"> </td></tr></table></div><div class="subs instances"><p id="control.i:LayoutAlignment" class="caption collapser" onclick="toggleSection('i:LayoutAlignment')">Instances</p><div id="section.i:LayoutAlignment" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutAlignment">LayoutAlignment</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:layoutSetAlignment" class="def">layoutSetAlignment</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutAlignment">LayoutAlignment</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetAlignment" class="link">Source</a></p><div class="doc"><p>Set how this paragraph is aligned.
</p><ul><li> Sets the alignment for the layout (how partial lines are
positioned within the horizontal space available.)
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetAlignment" class="def">layoutGetAlignment</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutAlignment">LayoutAlignment</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetAlignment" class="link">Source</a></p><div class="doc"><p>Get the alignment for the layout.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:TabAlign" class="def">TabAlign</a> <a href="src/Graphics-Rendering-Pango-Layout.html#TabAlign" class="link">Source</a></p><div class="doc"><p>Specify where the Tab stop appears relative to the text.
</p><ul><li> Only Tab stops that align text to the left are supported right now.
</li></ul></div><div class="subs instances"><p id="control.i:TabAlign" class="caption collapser" onclick="toggleSection('i:TabAlign')">Instances</p><div id="section.i:TabAlign" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-Rendering-Pango-Layout.html#t:TabAlign">TabAlign</a></td><td class="doc empty"> </td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:TabPosition" class="def">TabPosition</a> = (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:TabAlign">TabAlign</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#TabPosition" class="link">Source</a></p><div class="doc"><p>A Tab position.
</p></div></div><div class="top"><p class="src"><a name="v:layoutSetTabs" class="def">layoutSetTabs</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> [<a href="Graphics-Rendering-Pango-Layout.html#t:TabPosition">TabPosition</a>] -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetTabs" class="link">Source</a></p><div class="doc"><p>Set a list of Tab positoins.
</p></div></div><div class="top"><p class="src"><a name="v:layoutResetTabs" class="def">layoutResetTabs</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutResetTabs" class="link">Source</a></p><div class="doc"><p>Reset the original set of Tab positions.
</p><ul><li> Restore the default which is a Tab stop every eight characters.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetTabs" class="def">layoutGetTabs</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> [<a href="Graphics-Rendering-Pango-Layout.html#t:TabPosition">TabPosition</a>])<a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetTabs" class="link">Source</a></p><div class="doc"><p>Retrieve the list of current Tab positions.
</p><ul><li> If no Tab position where set, <code>Nothing</code> is returned. In this case, Tab
positions are implicit at every eight characters.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutSetSingleParagraphMode" class="def">layoutSetSingleParagraphMode</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.2.0.0/GHC-Tuple.html#t:-40--41-">()</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutSetSingleParagraphMode" class="link">Source</a></p><div class="doc"><p>Honor newlines or not.
</p><ul><li> If <code>honor</code> is <code>True</code>, do not treat newlines and
similar characters as paragraph separators; instead, keep all text in
a single paragraph, and display a glyph for paragraph separator
characters. Used when you want to allow editing of newlines on a
single text line.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetSingleParagraphMode" class="def">layoutGetSingleParagraphMode</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetSingleParagraphMode" class="link">Source</a></p><div class="doc"><p>Retrieve if newlines are honored.
</p><ul><li> See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetSingleParagraphMode">layoutSetSingleParagraphMode</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutXYToIndex" class="def">layoutXYToIndex</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutXYToIndex" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>the <code>x</code> position
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>the <code>y</code> position
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Converts a device unit to a character index.
</p><ul><li> Converts from <code>x</code> and <code>y</code> position within a layout to the index of
the closest character. If the <code>y</code> position is not inside the layout,
the closest position is chosen (the position will be clamped inside
the layout). If the <code>x</code> position is not within the layout, then the
start or the end of the line is chosen. If either the <code>x</code> or <code>y</code>
positions were not inside the layout, then the function returns <code>False</code>;
on an exact hit, it returns <code>True</code>.
</li><li> The function returns the flag for the exact hit and the index into
the string. The third value is zero if the character corresponds to
one grapheme. If the grapheme is the result of a cluster, this value
may be greater than one, indicating where in the grapheme the position
lies. Zero represents the trailing edge on the grapheme.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIndexToPos" class="def">layoutIndexToPos</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIndexToPos" class="link">Source</a></p><div class="doc"><p>Return the rectangle of the glyph at the given index.
</p><ul><li> Converts from an index within a <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code> to the onscreen position
corresponding to the grapheme at that index, which is represented as
rectangle. Note that, given a <code>PangoRectangle x y width height</code>, <code>x</code>
is always the leading edge of the grapheme and <code>x + width</code> the
trailing edge of the grapheme. If the directionality of the grapheme
is right-to-left, then <code>width</code> will be negative.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetCursorPos" class="def">layoutGetCursorPos</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetCursorPos" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</td><td class="doc"><pre>(strong, weak)</pre></td></tr></table></div><div class="doc"><p>Return a cursor position.
</p><ul><li> Given an index within a layout, determines the positions that of the
strong and weak cursors if the insertion point is at that index.
The position of each cursor is stored as a zero-width rectangle.
The strong cursor location is the location where characters of the
directionality equal to the base direction of the layout are inserted.
The weak cursor location is the location where characters of the
directionality opposite to the base direction of the layout are
inserted. The first element of the typle is the strong position,
the second the weak.
</li></ul></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:CursorPos" class="def">CursorPos</a> <a href="src/Graphics-Rendering-Pango-Layout.html#CursorPos" class="link">Source</a></p><div class="doc"><p>A new cursor position.
</p><p>See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutMoveCursorVisually">layoutMoveCursorVisually</a></code>.
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:CursorPosPrevPara" class="def">CursorPosPrevPara</a></td><td class="doc"><p>The cursor should move to the previous paragraph.
</p></td></tr><tr><td class="src"><a name="v:CursorPos" class="def">CursorPos</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>The sum of the indices is the new cursor position.
</p></td></tr><tr><td class="src"><a name="v:CursorPosNextPara" class="def">CursorPosNextPara</a></td><td class="doc"><p>The cursor should advance to the next paragraph.
</p></td></tr></table></div></div><div class="top"><p class="src"><a name="v:layoutMoveCursorVisually" class="def">layoutMoveCursorVisually</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutMoveCursorVisually" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>True</code> to create a strong cursor.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>The previous position.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>True</code> if the cursor should move right.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:CursorPos">CursorPos</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Move a cursor visually.
</p><ul><li> Compute a new cursor position from a previous cursor position. A value
of <code>True</code> for the direction will move it to the right, independant of
the underlying direction. Hence the cursor position might jump if
left-to-right text is mixed with right-to-left text.
</li><li> The first flag should be <code>True</code> if this cursor is the strong cursor.
The strong cursor is the cursor of the base direction of the current
layout (see <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetAutoDir">layoutSetAutoDir</a></code>). The weak cursor is that of the
opposite direction.
</li><li> The previous cursor position is given by <code>idx</code>. If this text at this
position is a cluster, the cursor will only move to the end or
beginning of the cluster as opposed to past the next character.
The return value is either <code><a href="Graphics-Rendering-Pango-Layout.html#v:CursorPosNextPara">CursorPosNextPara</a></code> if the cursor moved
beyond this paragraph, it is <code><a href="Graphics-Rendering-Pango-Layout.html#v:CursorPosPrevPara">CursorPosPrevPara</a></code> if the cursor moved
in front of this paragraph and it is <code><a href="Graphics-Rendering-Pango-Layout.html#t:CursorPos">CursorPos</a></code> <code>idx</code> <code>trail</code> to denote
the new cursor position <code>idx</code>. Note that <code>idx</code> will always denote an
insertion point, that is, <code>idx</code> will never point into the middle of
a cluster. The <code>trail</code> value can contain a positive
value if the current cursor position is at the end of the current line.
In this case, <code>idx</code> points past the last character of this line while
<code>trail</code> contains the number of characters that are reponsible for the
line break such as newlines. The actual cursor position is always
<code>idx+trail</code> where the visual cursor should be shown.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetExtents" class="def">layoutGetExtents</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetExtents" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</td><td class="doc"><pre>(ink, logical)</pre></td></tr></table></div><div class="doc"><p>Computes the logical and ink extents of the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>.
</p><p>Logical extents are usually what you want for positioning things. Note that
both extents may have non-zero x and y. You may want to use those to offset
where you render the layout. Not doing that is a very typical bug that
shows up as right-to-left layouts not being correctly positioned in a
layout with a set width.
</p><p>Layout coordinates begin at the top left corner of the layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetPixelExtents" class="def">layoutGetPixelExtents</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetPixelExtents" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>, <a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>)</td><td class="doc"><pre>(ink, logical)</pre></td></tr></table></div><div class="doc"><p>Compute the physical size of the layout.
</p><ul><li> Computes the ink and the logical size of the <code>Layout</code> in device units,
that is, pixels for a screen. Identical to <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutGetExtents">layoutGetExtents</a></code> and
converting the <code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></code>s in the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a></code> to integers.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetLineCount" class="def">layoutGetLineCount</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetLineCount" class="link">Source</a></p><div class="doc"><p>Ask for the number of lines in this layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetLine" class="def">layoutGetLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetLine" class="link">Source</a></p><div class="doc"><p>Extract a single lines of the layout.
</p><ul><li> The given index starts from 0. The function throws an
<code><a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Control-Exception-Base.html#t:ArrayException">ArrayException</a></code> if the index is out of bounds.
</li><li> The lines of each layout are regenerated if any attribute changes.
Thus the returned list does not reflect the current state of lines
after a change has been made.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutGetLines" class="def">layoutGetLines</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [<a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a>]<a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetLines" class="link">Source</a></p><div class="doc"><p>Extract the lines of the layout.
</p><ul><li> The lines of each layout are regenerated if any attribute changes.
Thus the returned list does not reflect the current state of lines
after a change has been made.
</li></ul></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:LayoutIter" class="def">LayoutIter</a> <a href="src/Graphics-Rendering-Pango-BasicTypes.html#LayoutIter" class="link">Source</a></p><div class="doc"><p>An iterator to examine a layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutGetIter" class="def">layoutGetIter</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutGetIter" class="link">Source</a></p><div class="doc"><p>Create an iterator to examine a layout.
</p></div></div><div class="top"><p class="src"><a name="v:layoutIterNextItem" class="def">layoutIterNextItem</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterNextItem" class="link">Source</a></p><div class="doc"><p>Move to the next <code><a href="Graphics-Rendering-Pango-Rendering.html#t:GlyphItem">GlyphItem</a></code>.
</p><ul><li> Returns <code>False</code> if this was the last item in the layout.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterNextChar" class="def">layoutIterNextChar</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterNextChar" class="link">Source</a></p><div class="doc"><p>Move to the next char.
</p><ul><li> Returns <code>False</code> if this was the last char in the layout.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterNextCluster" class="def">layoutIterNextCluster</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterNextCluster" class="link">Source</a></p><div class="doc"><p>Move to the next cluster.
</p><ul><li> Returns <code>False</code> if this was the last cluster in the layout.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterNextLine" class="def">layoutIterNextLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterNextLine" class="link">Source</a></p><div class="doc"><p>Move to the next line.
</p><ul><li> Returns <code>False</code> if this was the last line in the layout.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterAtLastLine" class="def">layoutIterAtLastLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterAtLastLine" class="link">Source</a></p><div class="doc"><p>Check if the iterator is on the last line.
</p><ul><li> Returns <code>True</code> if the iterator is on the last line of this
paragraph.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetIndex" class="def">layoutIterGetIndex</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetIndex" class="link">Source</a></p><div class="doc"><p>Get the character index.
</p><ul><li> Note that iterating forward by char moves in visual order, not
logical order, so indexes may not be sequential. Also, the index
may be equal to the length of the text in the layout.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetBaseline" class="def">layoutIterGetBaseline</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetBaseline" class="link">Source</a></p><div class="doc"><p>Query the vertical position within the layout.
</p><ul><li> Gets the y position of the current line's baseline (origin at top
left of the entire layout).
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetItem" class="def">layoutIterGetItem</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Rendering.html#t:GlyphItem">GlyphItem</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetItem" class="link">Source</a></p><div class="doc"><p>Retrieve the current <code><a href="Graphics-Rendering-Pango-Rendering.html#t:GlyphItem">GlyphItem</a></code> under the iterator.
</p><ul><li> Each <code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></code> contains a list of <code><a href="Graphics-Rendering-Pango-Rendering.html#t:GlyphItem">GlyphItem</a></code>s. This function
returns the <code><a href="Graphics-Rendering-Pango-Rendering.html#t:GlyphItem">GlyphItem</a></code> under the current iterator. If the iterator
is positioned past the last charactor of the paragraph, the function
returns <code>Nothing</code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetLine" class="def">layoutIterGetLine</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetLine" class="link">Source</a></p><div class="doc"><p>Extract the line under the iterator.
</p></div></div><div class="top"><p class="src"><a name="v:layoutIterGetCharExtents" class="def">layoutIterGetCharExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetCharExtents" class="link">Source</a></p><div class="doc"><p>Retrieve a rectangle surrounding a character.
</p><ul><li> Get the extents of the current character
(origin is the top left of the entire layout). Only logical extents
can sensibly be obtained for characters; ink extents make sense only
down to the level of clusters.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetClusterExtents" class="def">layoutIterGetClusterExtents</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetClusterExtents" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)</td><td class="doc"><pre>(ink, logical)</pre></td></tr></table></div><div class="doc"><p>Compute the physical size of the cluster.
</p><ul><li> Computes the ink and the logical size of the cluster pointed to by
<code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetRunExtents" class="def">layoutIterGetRunExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetRunExtents" class="link">Source</a></p><div class="doc"><p>Compute the physical size of the run.
</p><ul><li> Computes the ink and the logical size of the run pointed to by
<code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetLineYRange" class="def">layoutIterGetLineYRange</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetLineYRange" class="link">Source</a></p><div class="doc"><p>Retrieve vertical extent of this line.
</p><ul><li> Divides the vertical space in the <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code> being
iterated over between the lines in the layout, and returns the
space belonging to the current line. A line's range includes the
line's logical extents, plus half of the spacing above and below
the line, if <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutSetSpacing">layoutSetSpacing</a></code> has been called
to set layout spacing. The y positions are in layout coordinates
(origin at top left of the entire layout).
</li><li> The first element in the returned tuple is the start, the second is
the end of this line.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutIterGetLineExtents" class="def">layoutIterGetLineExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutIterGetLineExtents" class="link">Source</a></p><div class="doc"><p>Compute the physical size of the line.
</p><ul><li> Computes the ink and the logical size of the line pointed to by
<code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutIter">LayoutIter</a></code>. See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutGetExtents">layoutGetExtents</a></code>.
</li><li> Extents are in layout coordinates (origin is the top-left corner
of the entire <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>). Thus the extents returned
by this function will be the same width/height but not at the
same x/y as the extents returned from
<code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutLineGetExtents">layoutLineGetExtents</a></code>.
</li></ul></div></div><div class="top"><p class="src"><span class="keyword">data</span> <a name="t:LayoutLine" class="def">LayoutLine</a> <a href="src/Graphics-Rendering-Pango-BasicTypes.html#LayoutLine" class="link">Source</a></p><div class="doc"><p>A single line in a <code><a href="Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:layoutLineGetExtents" class="def">layoutLineGetExtents</a> :: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a> -> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>, <a href="Graphics-Rendering-Pango-Layout.html#t:PangoRectangle">PangoRectangle</a>)<a href="src/Graphics-Rendering-Pango-Layout.html#layoutLineGetExtents" class="link">Source</a></p><div class="doc"><p>Compute the physical size of the line.
</p><ul><li> Computes the ink and the logical size of the <code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></code>.
See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutGetExtents">layoutGetExtents</a></code>.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutLineGetPixelExtents" class="def">layoutLineGetPixelExtents</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutLineGetPixelExtents" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>, <a href="Graphics-Rendering-Pango-Enums.html#t:Rectangle">Rectangle</a>)</td><td class="doc"><p>(ink, logical)
</p></td></tr></table></div><div class="doc"><p>Compute the physical size of the line.
</p><ul><li> Computes the ink and the logical size of the <code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></code>.
See <code><a href="Graphics-Rendering-Pango-Layout.html#v:layoutGetExtents">layoutGetExtents</a></code>. The returned values are in device units, that
is, pixels for the screen and points for printers.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutLineIndexToX" class="def">layoutLineIndexToX</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutLineIndexToX" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>the index into the string
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>return the beginning (<code>False</code>) or the end
of the character
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Request the horizontal position of a character.
</p></div></div><div class="top"><p class="src"><a name="v:layoutLineXToIndex" class="def">layoutLineXToIndex</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutLineXToIndex" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></td><td class="doc empty"> </td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>The <code>x</code> position.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Bool.html#t:Bool">Bool</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a>)</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Request the character index of a given horizontal position.
</p><ul><li> Converts from an x offset to the index of the corresponding
character within the text of the layout. If the <code>x</code> parameter is
outside the line, a triple <code>(False, index, trailing)</code> is returned
where <code>index</code> and <code>trailing</code> will point to the very
first or very last position in the line. This notion of first and last
position is based on the direction of the paragraph; for example,
if the direction is right-to-left, then an <code>x</code> position to the
right of the line results in 0 being returned for <code>index</code> and
<code>trailing</code>. An <code>x</code> position to the left of the line results in
<code>index</code> pointing to the (logical) last grapheme in the line and
trailing pointing to the number of characters in that grapheme.
The reverse is true for a left-to-right line. If the boolean flag in
the result is <code>True</code> then <code>x</code> was within the layout line and
<code>trailing</code> indicates where in a cluster the <code>x</code> position lay. It is
0 for the trailing edge of the cluster.
</li></ul></div></div><div class="top"><p class="src"><a name="v:layoutLineGetXRanges" class="def">layoutLineGetXRanges</a><a href="src/Graphics-Rendering-Pango-Layout.html#layoutLineGetXRanges" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></td><td class="doc"><p>The line of interest.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>The index of the start character
(counting from 0). If this value is
less than the start index for the line,
then the first range will extend all the
way to the leading edge of the layout.
Otherwise it will start at the leading
edge of the first character.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>The index after the last character.
If this value is greater than the end
index for the line, then the last range
will extend all the way to the trailing
edge of the layout. Otherwise, it will end
at the trailing edge of the last
character.
</p></td></tr><tr><td class="src">-> <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/System-IO.html#t:IO">IO</a> [(<a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>, <a href="/usr/share/doc/ghc-doc/html/libraries/base-4.5.0.0/Prelude.html#t:Double">Double</a>)]</td><td class="doc empty"> </td></tr></table></div><div class="doc"><p>Retrieve bounding boxes for a given piece of text contained in this
<code><a href="Graphics-Rendering-Pango-Layout.html#t:LayoutLine">LayoutLine</a></code>.
</p><ul><li> The result is a list to accommodate for mixed left-to-right and
right-to-left text. Even if the text is not mixed, several
ranges might be returned that are adjacent. The ranges are always
sorted from left to right. The values are with respect to the left
edge of the entire layout, not with respect to the line (which might
be indented or not left aligned).
</li></ul></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.10.0</p></div></body></html>
|