Sophie

Sophie

distrib > Fedora > 15 > i386 > by-pkgid > 404d46ca9bb341d7a0e7e04bc69da9df > files > 747

ghc-gtk-devel-0.12.0-4.fc15.i686.rpm

<!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.UI.Gtk.Display.Label</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-UI-Gtk-Display-Label.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Display-Label.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">gtk-0.12.0: Binding to the Gtk+ graphical user interface library.</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></table><p class="caption">Graphics.UI.Gtk.Display.Label</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail
</a><ul><li><a href="#g:2">Mnemonics
</a></li><li><a href="#g:3">Markup (styled text)
</a></li><li><a href="#g:4">Selectable labels
</a></li><li><a href="#g:5">Text layout
</a></li></ul></li><li><a href="#g:6">Class Hierarchy
</a></li><li><a href="#g:7">Types
</a></li><li><a href="#g:8">Constructors
</a></li><li><a href="#g:9">Methods
</a></li><li><a href="#g:10">Attributes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A widget that displays a small to medium amount of text
</p></div></div><div id="synopsis"><p id="control.syn" class="caption expander" onclick="toggleSection('syn')">Synopsis</p><ul id="section.syn" class="hide" onclick="toggleSection('syn')"><li class="src short"><span class="keyword">data</span>  <a href="#t:Label">Label</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Misc.html#t:MiscClass">MiscClass</a> o =&gt; <a href="#t:LabelClass">LabelClass</a> o </li><li class="src short"><a href="#v:castToLabel">castToLabel</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></li><li class="src short"><a href="#v:gTypeLabel">gTypeLabel</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toLabel">toLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></li><li class="src short"><a href="#v:labelNew">labelNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></li><li class="src short"><a href="#v:labelNewWithMnemonic">labelNewWithMnemonic</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></li><li class="src short"><a href="#v:labelSetText">labelSetText</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelSetLabel">labelSetLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelSetTextWithMnemonic">labelSetTextWithMnemonic</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelSetMarkup">labelSetMarkup</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelSetMarkupWithMnemonic">labelSetMarkupWithMnemonic</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a> :: (<a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) =&gt; self -&gt; widget -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetMnemonicWidget">labelGetMnemonicWidget</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a>)</li><li class="src short"><span class="keyword">type</span> <a href="#t:KeyVal">KeyVal</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word32">Word32</a></li><li class="src short"><a href="#v:labelGetMnemonicKeyval">labelGetMnemonicKeyval</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:KeyVal">KeyVal</a></li><li class="src short"><a href="#v:labelSetUseMarkup">labelSetUseMarkup</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetUseMarkup">labelGetUseMarkup</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelSetUseUnderline">labelSetUseUnderline</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetUseUnderline">labelGetUseUnderline</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelGetText">labelGetText</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:labelGetLabel">labelGetLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:labelSetAttributes">labelSetAttributes</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; [<a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetAttributes">labelGetAttributes</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]</li><li class="src short"><a href="#v:labelSetPattern">labelSetPattern</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> l =&gt; l -&gt; [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><span class="keyword">data</span>  <a href="#t:Justification">Justification</a> <ul class="subs"><li>= <a href="#v:JustifyLeft">JustifyLeft</a>  </li><li>| <a href="#v:JustifyRight">JustifyRight</a>  </li><li>| <a href="#v:JustifyCenter">JustifyCenter</a>  </li><li>| <a href="#v:JustifyFill">JustifyFill</a>  </li></ul></li><li class="src short"><a href="#v:labelSetJustify">labelSetJustify</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetJustify">labelGetJustify</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a></li><li class="src short"><a href="#v:labelGetLayout">labelGetLayout</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></li><li class="src short"><a href="#v:labelSetLineWrap">labelSetLineWrap</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetLineWrap">labelGetLineWrap</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelSetLineWrapMode">labelSetLineWrapMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetLineWrapMode">labelGetLineWrapMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a></li><li class="src short"><a href="#v:labelSetSelectable">labelSetSelectable</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetSelectable">labelGetSelectable</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelSelectRegion">labelSelectRegion</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetSelectionBounds">labelGetSelectionBounds</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>))</li><li class="src short"><a href="#v:labelGetLayoutOffsets">labelGetLayoutOffsets</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>)</li><li class="src short"><a href="#v:labelSetEllipsize">labelSetEllipsize</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetEllipsize">labelGetEllipsize</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></li><li class="src short"><a href="#v:labelSetWidthChars">labelSetWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetWidthChars">labelGetWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelSetMaxWidthChars">labelSetMaxWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetMaxWidthChars">labelGetMaxWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelSetSingleLineMode">labelSetSingleLineMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetSingleLineMode">labelGetSingleLineMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelSetAngle">labelSetAngle</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></li><li class="src short"><a href="#v:labelGetAngle">labelGetAngle</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:labelLabel">labelLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:labelUseMarkup">labelUseMarkup</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelUseUnderline">labelUseUnderline</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelJustify">labelJustify</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a></li><li class="src short"><a href="#v:labelWrap">labelWrap</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelWrapMode">labelWrapMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a></li><li class="src short"><a href="#v:labelSelectable">labelSelectable</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelMnemonicWidget">labelMnemonicWidget</a> :: (<a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> self (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a>) widget</li><li class="src short"><a href="#v:labelMnemonicKeyval">labelMnemonicKeyval</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelPattern">labelPattern</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:WriteAttr">WriteAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li><li class="src short"><a href="#v:labelCursorPosition">labelCursorPosition</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelSelectionBound">labelSelectionBound</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelEllipsize">labelEllipsize</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></li><li class="src short"><a href="#v:labelWidthChars">labelWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelSingleLineMode">labelSingleLineMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelAngle">labelAngle</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></li><li class="src short"><a href="#v:labelAttributes">labelAttributes</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self [<a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]</li><li class="src short"><a href="#v:labelMaxWidthChars">labelMaxWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></li><li class="src short"><a href="#v:labelLineWrap">labelLineWrap</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:labelText">labelText</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></li></ul></div><div id="interface"><h1 id="g:1">Detail
</h1><div class="doc"><p>The <code><a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></code> widget displays a small amount of text. As the name implies,
 most labels are used to label another widget such as a <code><a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a></code>, a
 <code><a href="Graphics-UI-Gtk-MenuComboToolbar-MenuItem.html#t:MenuItem">MenuItem</a></code>, or a <code><a href="Graphics-UI-Gtk-MenuComboToolbar-OptionMenu.html#t:OptionMenu">OptionMenu</a></code>.
</p></div><h2 id="g:2">Mnemonics
</h2><div class="doc"><p>Labels may contain mnemonics. Mnemonics are underlined characters in the
 label, used for keyboard navigation. Mnemonics are created by providing a
 string with an underscore before the mnemonic character, such as
 <code>&quot;_File&quot;</code>, to the functions <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelNewWithMnemonic">labelNewWithMnemonic</a></code> or
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetTextWithMnemonic">labelSetTextWithMnemonic</a></code>.
</p><p>Mnemonics automatically activate any activatable widget the label is
 inside, such as a <code><a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a></code>; if the label is not inside the mnemonic's target
 widget, you have to tell the label about the target using
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code>. Here's a simple example where the label is inside
 a button: There's a convenience function to create buttons with a mnemonic
 label already inside: To create a mnemonic for a widget alongside the label,
 such as a <code><a href="Graphics-UI-Gtk-Entry-Entry.html#t:Entry">Entry</a></code>, you have to point the label at the entry with
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code>:
</p><pre> -- Pressing Alt+H will activate this button
 button &lt;- buttonNew
 label &lt;- labelNewWithMnemonic &quot;_Hello&quot;
 containerAdd button label
</pre><pre> -- Pressing Alt+H will activate this button
 button &lt;- buttonNewWithMnemonic &quot;_Hello&quot;
</pre><pre> -- Pressing Alt+H will focus the entry
 entry &lt;- entryNew
 label &lt;- labelNewWithMnemonic &quot;_Hello&quot;
 labelSetMnemonicWidget label entry
</pre></div><h2 id="g:3">Markup (styled text)
</h2><div class="doc"><p>To make it easy to format text in a label (changing colors, fonts, etc.),
 label text can be provided in a simple markup format. Here's how to create a
 label with a small font: (See complete documentation of available tags in
 the Pango manual.)
</p><pre> label &lt;- labelNew Nothing
 labelSetMarkup label &quot;&lt;small&gt;Small text&lt;/small&gt;&quot;
</pre><p>The markup passed to <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMarkup">labelSetMarkup</a></code> must be valid; for example, literal
 &lt;/&gt;/&amp; characters must be escaped as <code>&quot;&amp;lt;&quot;</code>, <code>&quot;&amp;gt;&quot;</code>, and
 <code>&quot;&amp;amp;</code>&quot;. If you pass
 text obtained from the user, file, or a network to <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMarkup">labelSetMarkup</a></code>, you'll
 want to escape it with <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#v:escapeMarkup">escapeMarkup</a></code>.
</p></div><h2 id="g:4">Selectable labels
</h2><div class="doc"><p>Labels can be made selectable with <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetSelectable">labelSetSelectable</a></code>. Selectable
 labels allow the user to copy the label contents to the clipboard. Only
 labels that contain useful-to-copy information - such as error messages -
 should be made selectable.
</p></div><h2 id="g:5">Text layout
</h2><div class="doc"><p>A label can contain any number of paragraphs, but will have performance
 problems if it contains more than a small number. Paragraphs are separated
 by newlines or other paragraph separators understood by Pango.
</p><p>Labels can automatically wrap text if you call <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetLineWrap">labelSetLineWrap</a></code>.
</p><p><code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetJustify">labelSetJustify</a></code> sets how the lines in a label align with one another.
 If you want to set how the label as a whole aligns in its available space,
 see <code>Graphics.UI.Gtk.Abstract.Misc.miscSetAlignment</code>.
</p></div><h1 id="g:6">Class Hierarchy
</h1><div class="doc"><pre>
 | <code><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObject">GObject</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Object.html#t:Object">Object</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:Misc">Misc</a></code>
 | +----Label
 | +----<code><a href="Graphics-UI-Gtk-Display-AccelLabel.html#t:AccelLabel">AccelLabel</a></code>
 | +----<code>TipsQuery</code>
</pre></div><h1 id="g:7">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Label" class="def">Label</a>  <a href="src/Graphics-UI-Gtk-Types.html#Label" class="link">Source</a></p><div class="subs instances"><p id="control.i:Label" class="caption collapser" onclick="toggleSection('i:Label')">Instances</p><div id="section.i:Label" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Ord.html#t:Ord">Ord</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Misc.html#t:MiscClass">MiscClass</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Object.html#t:ObjectClass">ObjectClass</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Abstract-Misc.html#t:MiscClass">MiscClass</a> o =&gt; <a name="t:LabelClass" class="def">LabelClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#LabelClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:LabelClass" class="caption collapser" onclick="toggleSection('i:LabelClass')">Instances</p><div id="section.i:LabelClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> TipsQuery</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> <a href="Graphics-UI-Gtk-Display-AccelLabel.html#t:AccelLabel">AccelLabel</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToLabel" class="def">castToLabel</a> :: <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-GObject.html#t:GObjectClass">GObjectClass</a> obj =&gt; obj -&gt; <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a><a href="src/Graphics-UI-Gtk-Types.html#castToLabel" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeLabel" class="def">gTypeLabel</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeLabel" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toLabel" class="def">toLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a><a href="src/Graphics-UI-Gtk-Types.html#toLabel" class="link">Source</a></p></div><h1 id="g:8">Constructors
</h1><div class="top"><p class="src"><a name="v:labelNew" class="def">labelNew</a> :: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelNew" class="link">Source</a></p><div class="doc"><p>Creates a new label with the given text inside it. You can pass <code>Nothing</code>
 to get an empty label widget.
</p></div></div><div class="top"><p class="src"><a name="v:labelNewWithMnemonic" class="def">labelNewWithMnemonic</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelNewWithMnemonic" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a></td><td class="doc"><p><code>str</code> - The text of the label, with an underscore in front
 of the mnemonic character
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></code>, containing the text in <code>str</code>.
</p><p>If characters in <code>str</code> are preceded by an underscore, they are
 underlined. If you need a literal underscore character in a label, use
 '__' (two underscores). The first underlined character represents a
 keyboard accelerator called a mnemonic. The mnemonic key can be used to
 activate another widget, chosen automatically, or explicitly using
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code>.
</p><p>If <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code> is not called, then the first activatable
 ancestor of the <code><a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></code> will be chosen as the mnemonic widget. For instance,
 if the label is inside a button or menu item, the button or menu item will
 automatically become the mnemonic widget and be activated by the mnemonic.
</p></div></div><h1 id="g:9">Methods
</h1><div class="top"><p class="src"><a name="v:labelSetText" class="def">labelSetText</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetText" class="link">Source</a></p><div class="doc"><p>Sets the text within the <code><a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></code> widget. It overwrites any text that was
 there before.
</p><p>This will also clear any previously set mnemonic accelerators.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetLabel" class="def">labelSetLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetLabel" class="link">Source</a></p><div class="doc"><p>Sets the text of the label. The label is interpreted as including
 embedded underlines and/or Pango markup depending on the markup and
 underline properties.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetTextWithMnemonic" class="def">labelSetTextWithMnemonic</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetTextWithMnemonic" class="link">Source</a></p><div class="doc"><p>Sets the label's text from the given string. If characters in the string are
 preceded by an underscore, they are underlined indicating that they
 represent a keyboard accelerator called a mnemonic. The mnemonic key can be
 used to activate another widget, chosen automatically, or explicitly using
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetMarkup" class="def">labelSetMarkup</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetMarkup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a></td><td class="doc"><p><code>str</code> - a markup string (see Pango markup format)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parses <code>str</code> which is marked up with the Pango text markup language,
 as defined in <a href="Graphics-Rendering-Pango-Markup.html">Graphics.Rendering.Pango.Markup</a>,
 setting the label's text and attribute list based on the parse results. If
 the <code>str</code> is external data, you may need to escape it.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetMarkupWithMnemonic" class="def">labelSetMarkupWithMnemonic</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetMarkupWithMnemonic" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:Markup">Markup</a></td><td class="doc"><p><code>str</code> - a markup string (see Pango markup format)
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Parses <code>str</code> which is marked up with the Pango text markup language,
 as defined in <a href="Graphics-Rendering-Pango-Markup.html">Graphics.Rendering.Pango.Markup</a>,
 setting the label's text and attribute list based on the parse results. If
 characters in <code>str</code> are preceded by an underscore, they are underlined
 indicating that they represent a keyboard accelerator called a mnemonic.
</p><p>The mnemonic key can be used to activate another widget, chosen
 automatically, or explicitly using <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetMnemonicWidget" class="def">labelSetMnemonicWidget</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetMnemonicWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: (<a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget)</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; widget</td><td class="doc"><p><code>widget</code> - the target <code><a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a></code>
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>If the label has been set so that it has an mnemonic key (using i.e.
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMarkupWithMnemonic">labelSetMarkupWithMnemonic</a></code>, <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetTextWithMnemonic">labelSetTextWithMnemonic</a></code>,
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelNewWithMnemonic">labelNewWithMnemonic</a></code> or the &quot;use_underline&quot; property) the label can be
 associated with a widget that is the target of the mnemonic. When the label
 is inside a widget (like a <code><a href="Graphics-UI-Gtk-Buttons-Button.html#t:Button">Button</a></code> or a <code><a href="Graphics-UI-Gtk-Layout-Notebook.html#t:Notebook">Notebook</a></code> tab) it is automatically
 associated with the correct widget, but sometimes (i.e. when the target is a
 <code><a href="Graphics-UI-Gtk-Entry-Entry.html#t:Entry">Entry</a></code> next to the label) you need to set it explicitly using this
 function.
</p><p>The target widget will be accelerated by emitting &quot;mnemonic_activate&quot;
 on it. The default handler for this signal will activate the widget if there
 are no mnemonic collisions and toggle focus between the colliding widgets
 otherwise.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetMnemonicWidget" class="def">labelGetMnemonicWidget</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetMnemonicWidget" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a>)</td><td class="doc"><p>returns the target of the label's mnemonic, or
 <code>Nothing</code> if none has been set and the default
 algorithm will be used.
</p></td></tr></table></div><div class="doc"><p>Retrieves the target of the mnemonic (keyboard shortcut) of this label.
 See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMnemonicWidget">labelSetMnemonicWidget</a></code>.
</p></div></div><div class="top"><p class="src"><span class="keyword">type</span> <a name="t:KeyVal" class="def">KeyVal</a> = <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Word.html#t:Word32">Word32</a><a href="src/Graphics-UI-Gtk-Gdk-Keys.html#KeyVal" class="link">Source</a></p><div class="doc"><p>Key values are the codes which are sent whenever a key is pressed or
 released.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetMnemonicKeyval" class="def">labelGetMnemonicKeyval</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:KeyVal">KeyVal</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetMnemonicKeyval" class="link">Source</a></p><div class="doc"><p>If the label has been set so that it has an mnemonic key this function
 returns the keyval used for the mnemonic accelerator.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetUseMarkup" class="def">labelSetUseMarkup</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetUseMarkup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>setting</code> - <code>True</code> if the label's text should be parsed for
 markup.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets whether the text of the label contains markup in Pango's text markup
 language. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMarkup">labelSetMarkup</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetUseMarkup" class="def">labelGetUseMarkup</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetUseMarkup" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> if the label's text will be parsed for markup.
</p></td></tr></table></div><div class="doc"><p>Returns whether the label's text is interpreted as marked up with the
 Pango text markup language. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetUseMarkup">labelSetUseMarkup</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetUseUnderline" class="def">labelSetUseUnderline</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetUseUnderline" class="link">Source</a></p><div class="doc"><p>If <code>True</code>, an underline in the text indicates the next character should be
 used for the mnemonic accelerator key.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetUseUnderline" class="def">labelGetUseUnderline</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetUseUnderline" class="link">Source</a></p><div class="doc"><p>Returns whether an embedded underline in the label indicates a mnemonic.
 See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetUseUnderline">labelSetUseUnderline</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetText" class="def">labelGetText</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetText" class="link">Source</a></p><div class="doc"><p>Gets the text from a label widget, as displayed on the screen. This
 does not include any embedded underlines indicating mnemonics or Pango
 markup. (See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelGetLabel">labelGetLabel</a></code>)
</p></div></div><div class="top"><p class="src"><a name="v:labelGetLabel" class="def">labelGetLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetLabel" class="link">Source</a></p><div class="doc"><p>Gets the text from a label widget including any embedded underlines
 indicating mnemonics and Pango markup. (See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelGetText">labelGetText</a></code>).
</p></div></div><div class="top"><p class="src"><a name="v:labelSetAttributes" class="def">labelSetAttributes</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetAttributes" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; [<a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]</td><td class="doc"><p><code>attr</code> <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a></code>
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets a PangoAttrList; the attributes in the list are applied to the label
 text.
</p><p>Note: The attributes set with this function will be applied and merged with
 any other attributes previously effected by way of the <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelUseUnderline">labelUseUnderline</a></code> or
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelUseMarkup">labelUseMarkup</a></code> properties. While it is not recommended to mix markup strings
 with manually set attributes, if you must; know that the attributes will be
 applied to the label after the markup string is parsed.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetAttributes" class="def">labelGetAttributes</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetAttributes" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> [<a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]</td><td class="doc"><p>return the attribute list, or Emtpy if none was set.
</p></td></tr></table></div><div class="doc"><p>Gets the attribute list that was set on the label using <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetAttributes">labelSetAttributes</a></code>, if any.
 This function does not reflect attributes that come from the labels markup (see <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetMarkup">labelSetMarkup</a></code>).
 If you want to get the effective attributes for the label, use <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#v:layoutGetAttributes">layoutGetAttributes</a></code> (<code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelGetLayout">labelGetLayout</a></code> (label)).
</p></div></div><div class="top"><p class="src"><a name="v:labelSetPattern" class="def">labelSetPattern</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> l =&gt; l -&gt; [<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>] -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetPattern" class="link">Source</a></p><div class="doc"><p>Underline parts of the text, odd indices of the list represent underlined
 parts.
</p></div></div><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:Justification" class="def">Justification</a>  <a href="src/Graphics-UI-Gtk-General-Enums.html#Justification" class="link">Source</a></p><div class="doc"><p>Justification for label and maybe other widgets (text?)
</p></div><div class="subs constructors"><p class="caption">Constructors</p><table><tr><td class="src"><a name="v:JustifyLeft" class="def">JustifyLeft</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:JustifyRight" class="def">JustifyRight</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:JustifyCenter" class="def">JustifyCenter</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a name="v:JustifyFill" class="def">JustifyFill</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="subs instances"><p id="control.i:Justification" class="caption collapser" onclick="toggleSection('i:Justification')">Instances</p><div id="section.i:Justification" class="show"><table><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Enum">Enum</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Eq.html#t:Eq">Eq</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Text-Show.html#t:Show">Show</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:labelSetJustify" class="def">labelSetJustify</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a> -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetJustify" class="link">Source</a></p><div class="doc"><p>Sets the alignment of the lines in the text of the label relative to each
 other. <code><a href="Graphics-UI-Gtk-Display-Label.html#v:JustifyLeft">JustifyLeft</a></code> is the default value when the widget is first created
 with <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelNew">labelNew</a></code>. If you instead want to set the alignment of the label as a
 whole, use <code>Graphics.UI.Gtk.Abstract.Misc.miscSetAlignment</code> instead.
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetJustify">labelSetJustify</a></code> has no effect on labels containing only a single line.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetJustify" class="def">labelGetJustify</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetJustify" class="link">Source</a></p><div class="doc"><p>Returns the justification of the label. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetJustify">labelSetJustify</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetLayout" class="def">labelGetLayout</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetLayout" class="link">Source</a></p><div class="doc"><p>Gets the <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code> used to display the label. The layout is useful to
 e.g. convert text positions to pixel positions, in combination with
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelGetLayoutOffsets">labelGetLayoutOffsets</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetLineWrap" class="def">labelSetLineWrap</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetLineWrap" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>wrap</code> - the setting
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Toggles line wrapping within the <code><a href="Graphics-UI-Gtk-Display-Label.html#t:Label">Label</a></code> widget. <code>True</code> makes it break
 lines if text exceeds the widget's size. <code>False</code> lets the text get cut off
 by the edge of the widget if it exceeds the widget size.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetLineWrap" class="def">labelGetLineWrap</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetLineWrap" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> if the lines of the label are automatically
 wrapped.
</p></td></tr></table></div><div class="doc"><p>Returns whether lines in the label are automatically wrapped. See
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetLineWrap">labelSetLineWrap</a></code>.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetLineWrapMode" class="def">labelSetLineWrapMode</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetLineWrapMode" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a></td><td class="doc"><p><code>wrapMode</code> - the line wrapping mode
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>If line wrapping is on (see <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetLineWrap">labelSetLineWrap</a></code>) this controls how the line wrapping is done.
 The default is <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#v:WrapWholeWords">WrapWholeWords</a></code> which means wrap on word boundaries.
</p><ul><li> Available since Gtk+ version 2.10
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelGetLineWrapMode" class="def">labelGetLineWrapMode</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetLineWrapMode" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a></td><td class="doc"><p>return the line wrapping mode
</p></td></tr></table></div><div class="doc"><p>Returns line wrap mode used by the label. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetLineWrapMode">labelSetLineWrapMode</a></code>.
</p><ul><li> Available since Gtk+ version 2.10
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelSetSelectable" class="def">labelSetSelectable</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetSelectable" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>setting</code> - <code>True</code> to allow selecting text in the label
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Selectable labels allow the user to select text from the label, for
 copy-and-paste.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetSelectable" class="def">labelGetSelectable</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetSelectable" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> if the user can copy text from the label
</p></td></tr></table></div><div class="doc"><p>Gets whether the text selectable.
</p></div></div><div class="top"><p class="src"><a name="v:labelSelectRegion" class="def">labelSelectRegion</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSelectRegion" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>startOffset</code> - start offset
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>endOffset</code> - end offset
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Selects a range of characters in the label, if the label is selectable.
 See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetSelectable">labelSetSelectable</a></code>. If the label is not selectable, this function has
 no effect. If <code>startOffset</code> or <code>endOffset</code> are -1, then the end of the label
 will be substituted.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetSelectionBounds" class="def">labelGetSelectionBounds</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>))<a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetSelectionBounds" class="link">Source</a></p><div class="doc"><p>Gets the selected range of characters in the label, if any. If there is
 a range selected the result is the start and end of the selection as
 character offsets.
</p></div></div><div class="top"><p class="src"><a name="v:labelGetLayoutOffsets" class="def">labelGetLayoutOffsets</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; self -&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>, <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a>)<a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetLayoutOffsets" class="link">Source</a></p><div class="doc"><p>Obtains the coordinates where the label will draw the <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>
 representing the text in the label; useful to convert mouse events into
 coordinates inside the <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:PangoLayout">PangoLayout</a></code>, e.g. to take some action if some part
 of the label is clicked. Of course you will need to create a <code><a href="Graphics-UI-Gtk-Misc-EventBox.html#t:EventBox">EventBox</a></code> to
 receive the events, and pack the label inside it, since labels are a
 'NoWindow' widget.
</p></div></div><div class="top"><p class="src"><a name="v:labelSetEllipsize" class="def">labelSetEllipsize</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetEllipsize" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></td><td class="doc"><p><code>mode</code> - a <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></code>
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the mode used to ellipsize (add an ellipsis: &quot;...&quot;) to the text if
 there is not enough space to render the entire string.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelGetEllipsize" class="def">labelGetEllipsize</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetEllipsize" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></td><td class="doc"><p>returns <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></code>
</p></td></tr></table></div><div class="doc"><p>Returns the ellipsizing position of the label. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetEllipsize">labelSetEllipsize</a></code>.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelSetWidthChars" class="def">labelSetWidthChars</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetWidthChars" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>nChars</code> - the new desired width, in characters.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the desired width in characters of <code>label</code> to <code>nChars</code>.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelGetWidthChars" class="def">labelGetWidthChars</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetWidthChars" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>returns the width of the label in characters.
</p></td></tr></table></div><div class="doc"><p>Retrieves the desired width of <code>label</code>, in characters. See
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetWidthChars">labelSetWidthChars</a></code>.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelSetMaxWidthChars" class="def">labelSetMaxWidthChars</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetMaxWidthChars" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p><code>nChars</code> - the new desired maximum width, in characters.
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the desired maximum width in characters of <code>label</code> to <code>nChars</code>.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelGetMaxWidthChars" class="def">labelGetMaxWidthChars</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetMaxWidthChars" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a></td><td class="doc"><p>returns the maximum width of the label in characters.
</p></td></tr></table></div><div class="doc"><p>Retrieves the desired maximum width of <code>label</code>, in characters. See
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetWidthChars">labelSetWidthChars</a></code>.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelSetSingleLineMode" class="def">labelSetSingleLineMode</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetSingleLineMode" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p><code>singleLineMode</code> - <code>True</code> if the label should be in single line
 mode
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets whether the label is in single line mode.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelGetSingleLineMode" class="def">labelGetSingleLineMode</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetSingleLineMode" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> when the label is in single line mode.
</p></td></tr></table></div><div class="doc"><p>Returns whether the label is in single line mode.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelSetAngle" class="def">labelSetAngle</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSetAngle" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p><code>angle</code> - the angle that the baseline of the label makes with
 the horizontal, in degrees, measured counterclockwise
</p></td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/ghc-prim-0.2.0.0/GHC-Unit.html#t:-40--41-">()</a></td><td class="doc empty">&nbsp;</td></tr></table></div><div class="doc"><p>Sets the angle of rotation for the label. An angle of 90 reads from from
 bottom to top, an angle of 270, from top to bottom. The angle setting for
 the label is ignored if the label is selectable, wrapped, or ellipsized.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelGetAngle" class="def">labelGetAngle</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelGetAngle" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">=&gt; self</td><td class="doc empty">&nbsp;</td></tr><tr><td class="src">-&gt; <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/System-IO.html#t:IO">IO</a> <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a></td><td class="doc"><p>returns the angle of rotation for the label
</p></td></tr></table></div><div class="doc"><p>Gets the angle of rotation for the label. See gtk_label_set_angle.
</p><ul><li> Available since Gtk+ version 2.6
</li></ul></div></div><h1 id="g:10">Attributes
</h1><div class="top"><p class="src"><a name="v:labelLabel" class="def">labelLabel</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelLabel" class="link">Source</a></p><div class="doc"><p>The text of the label.
</p></div></div><div class="top"><p class="src"><a name="v:labelUseMarkup" class="def">labelUseMarkup</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelUseMarkup" class="link">Source</a></p><div class="doc"><p>The text of the label includes XML markup. See pango_parse_markup().
</p><p>Default value: <code>False</code>
</p></div></div><div class="top"><p class="src"><a name="v:labelUseUnderline" class="def">labelUseUnderline</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelUseUnderline" class="link">Source</a></p><div class="doc"><p>If set, an underline in the text indicates the next character should be
 used for the mnemonic accelerator key.
</p><p>Default value: <code>False</code>
</p></div></div><div class="top"><p class="src"><a name="v:labelJustify" class="def">labelJustify</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="Graphics-UI-Gtk-Display-Label.html#t:Justification">Justification</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelJustify" class="link">Source</a></p><div class="doc"><p>The alignment of the lines in the text of the label relative to each
 other. This does NOT affect the alignment of the label within its
 allocation.
</p><p>Default value: <code><a href="Graphics-UI-Gtk-Display-Label.html#v:JustifyLeft">JustifyLeft</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:labelWrap" class="def">labelWrap</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelWrap" class="link">Source</a></p><div class="doc"><p>If set, wrap lines if the text becomes too wide.
</p><p>Default value: <code>False</code>
</p></div></div><div class="top"><p class="src"><a name="v:labelWrapMode" class="def">labelWrapMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#t:LayoutWrapMode">LayoutWrapMode</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelWrapMode" class="link">Source</a></p><div class="doc"><p>If line wrapping is on (see the <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelWrap">labelWrap</a></code> property) this controls how the line wrapping is done.
 The default is <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#v:WrapWholeWords">WrapWholeWords</a></code>, which means wrap on word boundaries.
</p><p>Default value: <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Layout.html#v:WrapWholeWords">WrapWholeWords</a></code>
</p><ul><li> Available since Gtk+ version 2.10
</li></ul></div></div><div class="top"><p class="src"><a name="v:labelSelectable" class="def">labelSelectable</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSelectable" class="link">Source</a></p><div class="doc"><p>Whether the label text can be selected with the mouse.
</p><p>Default value: <code>False</code>
</p></div></div><div class="top"><p class="src"><a name="v:labelMnemonicWidget" class="def">labelMnemonicWidget</a> :: (<a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self, <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:WidgetClass">WidgetClass</a> widget) =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadWriteAttr">ReadWriteAttr</a> self (<a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Maybe.html#t:Maybe">Maybe</a> <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:Widget">Widget</a>) widget<a href="src/Graphics-UI-Gtk-Display-Label.html#labelMnemonicWidget" class="link">Source</a></p><div class="doc"><p>The widget to be activated when the label's mnemonic key is pressed.
</p></div></div><div class="top"><p class="src"><a name="v:labelMnemonicKeyval" class="def">labelMnemonicKeyval</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelMnemonicKeyval" class="link">Source</a></p><div class="doc"><p>The mnemonic accelerator key for this label.
</p><p>Default value: 16777215
</p></div></div><div class="top"><p class="src"><a name="v:labelPattern" class="def">labelPattern</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:WriteAttr">WriteAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelPattern" class="link">Source</a></p><div class="doc"><p>A string with _ characters in positions correspond to characters in the text to underline.
</p><p>Default value: <a href="\.html">\</a>
</p></div></div><div class="top"><p class="src"><a name="v:labelCursorPosition" class="def">labelCursorPosition</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelCursorPosition" class="link">Source</a></p><div class="doc"><p>The current position of the insertion cursor in chars.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 0
</p></div></div><div class="top"><p class="src"><a name="v:labelSelectionBound" class="def">labelSelectionBound</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:ReadAttr">ReadAttr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSelectionBound" class="link">Source</a></p><div class="doc"><p>The position of the opposite end of the selection from the cursor in
 chars.
</p><p>Allowed values: &gt;= 0
</p><p>Default value: 0
</p></div></div><div class="top"><p class="src"><a name="v:labelEllipsize" class="def">labelEllipsize</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelEllipsize" class="link">Source</a></p><div class="doc"><p>The preferred place to ellipsize the string, if the label does not have
 enough room to display the entire string, specified as a <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:EllipsizeMode">EllipsizeMode</a></code>.
</p><p>Note that setting this property to a value other than <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#v:EllipsizeNone">EllipsizeNone</a></code> has
 the side-effect that the label requests only enough space to display the
 ellipsis &quot;...&quot;. In particular, this means that ellipsizing labels don't
 work well in notebook tabs, unless the tab's tab-expand property is set to
 <code>True</code>. Other means to set a label's width are
 <code>Graphics.UI.Gtk.Abstract.Widget.widgetSetSizeRequest</code> and
 <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetWidthChars">labelSetWidthChars</a></code>.
</p><p>Default value: <code><a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#v:EllipsizeNone">EllipsizeNone</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:labelWidthChars" class="def">labelWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelWidthChars" class="link">Source</a></p><div class="doc"><p>The desired width of the label, in characters. If this property is set to
 -1, the width will be calculated automatically, otherwise the label will
 request either 3 characters or the property value, whichever is greater. If
 the width-chars property is set to a positive value, then the
 max-width-chars property is ignored.
</p><p>Allowed values: &gt;= -1
</p><p>Default value: -1
</p></div></div><div class="top"><p class="src"><a name="v:labelSingleLineMode" class="def">labelSingleLineMode</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelSingleLineMode" class="link">Source</a></p><div class="doc"><p>Whether the label is in single line mode. In single line mode, the height
 of the label does not depend on the actual text, it is always set to ascent
 + descent of the font. This can be an advantage in situations where resizing
 the label because of text changes would be distracting, e.g. in a statusbar.
</p><p>Default value: <code>False</code>
</p></div></div><div class="top"><p class="src"><a name="v:labelAngle" class="def">labelAngle</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Prelude.html#t:Double">Double</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelAngle" class="link">Source</a></p><div class="doc"><p>The angle that the baseline of the label makes with the horizontal, in
 degrees, measured counterclockwise. An angle of 90 reads from from bottom to
 top, an angle of 270, from top to bottom. Ignored if the label is
 selectable, wrapped, or ellipsized.
</p><p>Allowed values: [0,360]
</p><p>Default value: 0
</p></div></div><div class="top"><p class="src"><a name="v:labelAttributes" class="def">labelAttributes</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self [<a href="/usr/share/doc/ghc/html/libraries/pango-0.12.0/Graphics-Rendering-Pango-Enums.html#t:PangoAttribute">PangoAttribute</a>]<a href="src/Graphics-UI-Gtk-Display-Label.html#labelAttributes" class="link">Source</a></p><div class="doc"><p>A list of style attributes to apply to the text of the label.
</p></div></div><div class="top"><p class="src"><a name="v:labelMaxWidthChars" class="def">labelMaxWidthChars</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Int.html#t:Int">Int</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelMaxWidthChars" class="link">Source</a></p><div class="doc"><p>The desired maximum width of the label, in characters. If this property
 is set to -1, the width will be calculated automatically, otherwise the
 label will request space for no more than the requested number of
 characters. If the width-chars property is set to a positive value, then the
 max-width-chars property is ignored.
</p><p>Allowed values: &gt;= -1
</p><p>Default value: -1
</p></div></div><div class="top"><p class="src"><a name="v:labelLineWrap" class="def">labelLineWrap</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelLineWrap" class="link">Source</a></p><div class="doc"><p>'lineWrap' property. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelGetLineWrap">labelGetLineWrap</a></code> and <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetLineWrap">labelSetLineWrap</a></code>
</p></div></div><div class="top"><p class="src"><a name="v:labelText" class="def">labelText</a> :: <a href="Graphics-UI-Gtk-Display-Label.html#t:LabelClass">LabelClass</a> self =&gt; <a href="/usr/share/doc/ghc/html/libraries/glib-0.12.0/System-Glib-Attributes.html#t:Attr">Attr</a> self <a href="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a><a href="src/Graphics-UI-Gtk-Display-Label.html#labelText" class="link">Source</a></p><div class="doc"><p>'text' property. See <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelGetText">labelGetText</a></code> and <code><a href="Graphics-UI-Gtk-Display-Label.html#v:labelSetText">labelSetText</a></code>
</p></div></div></div></div><div id="footer"><p>Produced by <a href="http://www.haskell.org/haddock/">Haddock</a> version 2.9.2</p></div></body></html>