Sophie

Sophie

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

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.Selectors.FontSelection</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-Selectors-FontSelection.html");};
//]]>
</script></head><body><div id="package-header"><ul class="links" id="page-menu"><li><a href="src/Graphics-UI-Gtk-Selectors-FontSelection.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.Selectors.FontSelection</p></div><div id="table-of-contents"><p class="caption">Contents</p><ul><li><a href="#g:1">Detail
</a></li><li><a href="#g:2">Class Hierarchy
</a></li><li><a href="#g:3">Types
</a></li><li><a href="#g:4">Constructors
</a></li><li><a href="#g:5">Methods
</a></li><li><a href="#g:6">Attributes
</a></li></ul></div><div id="description"><p class="caption">Description</p><div class="doc"><p>A widget for selecting fonts
</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:FontSelection">FontSelection</a> </li><li class="src short"><span class="keyword">class</span> <a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBoxClass">VBoxClass</a> o =&gt; <a href="#t:FontSelectionClass">FontSelectionClass</a> o </li><li class="src short"><a href="#v:castToFontSelection">castToFontSelection</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></li><li class="src short"><a href="#v:gTypeFontSelection">gTypeFontSelection</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a></li><li class="src short"><a href="#v:toFontSelection">toFontSelection</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></li><li class="src short"><a href="#v:fontSelectionNew">fontSelectionNew</a> :: <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-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></li><li class="src short"><a href="#v:fontSelectionGetFontName">fontSelectionGetFontName</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Char.html#t:String">String</a>)</li><li class="src short"><a href="#v:fontSelectionSetFontName">fontSelectionSetFontName</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></li><li class="src short"><a href="#v:fontSelectionGetPreviewText">fontSelectionGetPreviewText</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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:fontSelectionSetPreviewText">fontSelectionSetPreviewText</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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:fontSelectionFontName">fontSelectionFontName</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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:fontSelectionPreviewText">fontSelectionPreviewText</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></code> widget lists the available fonts, styles and sizes,
 allowing the user to select a font. It is used in the <code><a href="Graphics-UI-Gtk-Selectors-FontSelectionDialog.html#t:FontSelectionDialog">FontSelectionDialog</a></code>
 widget to provide a dialog box for selecting fonts.
</p><p>To set the font which is initially selected, use
 <code><a href="Graphics-UI-Gtk-Selectors-FontSelection.html#v:fontSelectionSetFontName">fontSelectionSetFontName</a></code>.
</p><p>To get the selected font use <code><a href="Graphics-UI-Gtk-Selectors-FontSelection.html#v:fontSelectionGetFontName">fontSelectionGetFontName</a></code>.
</p><p>To change the text which is shown in the preview area, use
 <code><a href="Graphics-UI-Gtk-Selectors-FontSelection.html#v:fontSelectionSetPreviewText">fontSelectionSetPreviewText</a></code>.
</p></div><h1 id="g:2">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-Container.html#t:Container">Container</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Abstract-Box.html#t:Box">Box</a></code>
 | +----<code><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBox">VBox</a></code>
 | +----FontSelection
</pre></div><h1 id="g:3">Types
</h1><div class="top"><p class="src"><span class="keyword">data</span>  <a name="t:FontSelection" class="def">FontSelection</a>  <a href="src/Graphics-UI-Gtk-Types.html#FontSelection" class="link">Source</a></p><div class="subs instances"><p id="control.i:FontSelection" class="caption collapser" onclick="toggleSection('i:FontSelection')">Instances</p><div id="section.i:FontSelection" 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-Selectors-FontSelection.html#t:FontSelection">FontSelection</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Layout-VBox.html#t:VBoxClass">VBoxClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Box.html#t:BoxClass">BoxClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></td><td class="doc empty">&nbsp;</td></tr><tr><td class="src"><a href="Graphics-UI-Gtk-Abstract-Container.html#t:ContainerClass">ContainerClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</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-Layout-VBox.html#t:VBoxClass">VBoxClass</a> o =&gt; <a name="t:FontSelectionClass" class="def">FontSelectionClass</a> o <a href="src/Graphics-UI-Gtk-Types.html#FontSelectionClass" class="link">Source</a></p><div class="subs instances"><p id="control.i:FontSelectionClass" class="caption collapser" onclick="toggleSection('i:FontSelectionClass')">Instances</p><div id="section.i:FontSelectionClass" class="show"><table><tr><td class="src"><a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</a> <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></td><td class="doc empty">&nbsp;</td></tr></table></div></div></div><div class="top"><p class="src"><a name="v:castToFontSelection" class="def">castToFontSelection</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-Selectors-FontSelection.html#t:FontSelection">FontSelection</a><a href="src/Graphics-UI-Gtk-Types.html#castToFontSelection" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:gTypeFontSelection" class="def">gTypeFontSelection</a> :: <a href="Graphics-UI-Gtk-Abstract-Widget.html#t:GType">GType</a><a href="src/Graphics-UI-Gtk-Types.html#gTypeFontSelection" class="link">Source</a></p></div><div class="top"><p class="src"><a name="v:toFontSelection" class="def">toFontSelection</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</a> o =&gt; o -&gt; <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a><a href="src/Graphics-UI-Gtk-Types.html#toFontSelection" class="link">Source</a></p></div><h1 id="g:4">Constructors
</h1><div class="top"><p class="src"><a name="v:fontSelectionNew" class="def">fontSelectionNew</a> :: <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-Selectors-FontSelection.html#t:FontSelection">FontSelection</a><a href="src/Graphics-UI-Gtk-Selectors-FontSelection.html#fontSelectionNew" class="link">Source</a></p><div class="doc"><p>Creates a new <code><a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelection">FontSelection</a></code>.
</p></div></div><h1 id="g:5">Methods
</h1><div class="top"><p class="src"><a name="v:fontSelectionGetFontName" class="def">fontSelectionGetFontName</a><a href="src/Graphics-UI-Gtk-Selectors-FontSelection.html#fontSelectionGetFontName" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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="/usr/share/doc/ghc/html/libraries/base-4.3.1.0/Data-Char.html#t:String">String</a>)</td><td class="doc"><p>returns the name of the currently selected font, or
 <code>Nothing</code> if no font is selected.
</p></td></tr></table></div><div class="doc"><p>Gets the currently-selected font name.
</p></div></div><div class="top"><p class="src"><a name="v:fontSelectionSetFontName" class="def">fontSelectionSetFontName</a><a href="src/Graphics-UI-Gtk-Selectors-FontSelection.html#fontSelectionSetFontName" class="link">Source</a></p><div class="subs arguments"><p class="caption">Arguments</p><table><tr><td class="src">:: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Char.html#t:String">String</a></td><td class="doc"><p><code>fontname</code> - a fontname.
</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/base-4.3.1.0/Data-Bool.html#t:Bool">Bool</a></td><td class="doc"><p>returns <code>True</code> if the font was found.
</p></td></tr></table></div><div class="doc"><p>Sets the currently-selected font.
</p></div></div><div class="top"><p class="src"><a name="v:fontSelectionGetPreviewText" class="def">fontSelectionGetPreviewText</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Selectors-FontSelection.html#fontSelectionGetPreviewText" class="link">Source</a></p><div class="doc"><p>Gets the text displayed in the preview area.
</p></div></div><div class="top"><p class="src"><a name="v:fontSelectionSetPreviewText" class="def">fontSelectionSetPreviewText</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Selectors-FontSelection.html#fontSelectionSetPreviewText" class="link">Source</a></p><div class="doc"><p>Sets the text displayed in the preview area.
</p></div></div><h1 id="g:6">Attributes
</h1><div class="top"><p class="src"><a name="v:fontSelectionFontName" class="def">fontSelectionFontName</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Selectors-FontSelection.html#fontSelectionFontName" class="link">Source</a></p><div class="doc"><p>The X string that represents this font.
</p><p>Default value: &quot;&quot;
</p></div></div><div class="top"><p class="src"><a name="v:fontSelectionPreviewText" class="def">fontSelectionPreviewText</a> :: <a href="Graphics-UI-Gtk-Selectors-FontSelection.html#t:FontSelectionClass">FontSelectionClass</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-Selectors-FontSelection.html#fontSelectionPreviewText" class="link">Source</a></p><div class="doc"><p>The text to display in order to demonstrate the selected font.
</p><p>Default value: &quot;abcdefghijk ABCDEFGHIJK&quot;
</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>